beautify biz production command
This commit is contained in:
parent
6c41d41d12
commit
3c58eb8523
@ -7863,31 +7863,29 @@ CMD:business( playerid, params[ ] )
|
|||||||
new
|
new
|
||||||
iBusiness = p_InBusiness[ playerid ];
|
iBusiness = p_InBusiness[ playerid ];
|
||||||
|
|
||||||
if (strmatch(params, "production"))
|
if ( strmatch( params, "production" ) )
|
||||||
{
|
{
|
||||||
new
|
new
|
||||||
bool: has = false;
|
bool: has = false;
|
||||||
|
|
||||||
szBigString = ""COL_WHITE"Name\t"COL_WHITE"Production Time\t"COL_WHITE"Product\n";
|
szBigString = ""COL_WHITE"Name\t"COL_WHITE"Production Time\t"COL_WHITE"Product\n";
|
||||||
|
|
||||||
foreach (new businessid : business) if (g_businessData[businessid][E_OWNER_ID] == p_AccountID[playerid])
|
foreach ( new businessid : business ) if ( g_businessData[ businessid ] [ E_OWNER_ID ] == p_AccountID[ playerid ] )
|
||||||
{
|
{
|
||||||
format(szBigString, sizeof(szBigString), "%s%s\t%s\t"COL_GOLD"%s\n",
|
format( szBigString, sizeof( szBigString ), "%s%s\t%s\t"COL_GOLD"%s\n",
|
||||||
szBigString,
|
szBigString, g_businessData[ businessid ] [ E_NAME ],
|
||||||
g_businessData[businessid][E_NAME],
|
g_businessData[ businessid ] [ E_PROD_TIMESTAMP ] != 0 ? (secondstotime( g_businessData[ businessid ] [ E_PROD_TIMESTAMP ] - g_iTime, ", ", 5, 0 ) ) : ( ""COL_GREEN"Production Finished!" ),
|
||||||
g_businessData[businessid][E_PROD_TIMESTAMP] != 0 ? (secondstotime(g_businessData[businessid][E_PROD_TIMESTAMP] - g_iTime, ", ", 5, 0)) : (""COL_GREEN"Production Finished!"),
|
g_businessData[ businessid ] [ E_PRODUCT ] == 0 ? ( ""COL_RED"No Product!" ) : ( number_format( g_businessData[ businessid ] [ E_PRODUCT ] * GetProductPrice( businessid ) ) )
|
||||||
g_businessData[businessid][E_PRODUCT] == 0 ? (""COL_RED"No Product!") : (number_format(g_businessData[businessid][E_PRODUCT] * GetProductPrice(businessid)))
|
), has = true;
|
||||||
), has = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!has)
|
if ( ! has ) {
|
||||||
return SendError(playerid, "You cannot use this command since you don't own any businesses.");
|
return SendError( playerid, "You cannot use this command since you don't own any businesses." );
|
||||||
|
} else {
|
||||||
ShowPlayerDialog(playerid, DIALOG_NULL, DIALOG_STYLE_TABLIST_HEADERS, ""COL_WHITE"Business Production", szBigString, "Close", "");
|
return ShowPlayerDialog( playerid, DIALOG_NULL, DIALOG_STYLE_TABLIST_HEADERS, ""COL_WHITE"Business Production", szBigString, "Close", "" );
|
||||||
return 1;
|
}
|
||||||
}
|
}
|
||||||
|
else if ( strmatch( params, "spawn" ))
|
||||||
if ( strmatch( params, "spawn" ))
|
|
||||||
{
|
{
|
||||||
SendServerMessage( playerid, "We have changed the command to simply "COL_GREY"/spawn"COL_WHITE"." );
|
SendServerMessage( playerid, "We have changed the command to simply "COL_GREY"/spawn"COL_WHITE"." );
|
||||||
return ShowPlayerSpawnMenu( playerid );
|
return ShowPlayerSpawnMenu( playerid );
|
||||||
|
@ -1,5 +1 @@
|
|||||||
(+) You can now contribute to community crowdfunds using /crowdfunds.
|
(+) Adds "/b production" to see what the status of your business production is.
|
||||||
(+) Added a command to reset gang respect without restarting the server.
|
|
||||||
(+) Adds /viewdeathmsg for level 1 admins to oversee any insulting messages.
|
|
||||||
(*) There can only be one boxing match at a time at the visage.
|
|
||||||
(/) Decreased amount of tax money put into random hits by 5%.
|
|
Loading…
Reference in New Issue
Block a user