beautify biz production command
This commit is contained in:
parent
6c41d41d12
commit
3c58eb8523
@ -7873,21 +7873,19 @@ CMD:business( playerid, params[ ] )
|
||||
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",
|
||||
szBigString,
|
||||
g_businessData[businessid][E_NAME],
|
||||
szBigString, 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_PRODUCT ] == 0 ? ( ""COL_RED"No Product!" ) : ( number_format( g_businessData[ businessid ] [ E_PRODUCT ] * GetProductPrice( businessid ) ) )
|
||||
), has = true;
|
||||
}
|
||||
|
||||
if (!has)
|
||||
if ( ! has ) {
|
||||
return SendError( playerid, "You cannot use this command since you don't own any businesses." );
|
||||
|
||||
ShowPlayerDialog(playerid, DIALOG_NULL, DIALOG_STYLE_TABLIST_HEADERS, ""COL_WHITE"Business Production", szBigString, "Close", "");
|
||||
return 1;
|
||||
} else {
|
||||
return ShowPlayerDialog( playerid, DIALOG_NULL, DIALOG_STYLE_TABLIST_HEADERS, ""COL_WHITE"Business Production", szBigString, "Close", "" );
|
||||
}
|
||||
|
||||
if ( strmatch( params, "spawn" ))
|
||||
}
|
||||
else if ( strmatch( params, "spawn" ))
|
||||
{
|
||||
SendServerMessage( playerid, "We have changed the command to simply "COL_GREY"/spawn"COL_WHITE"." );
|
||||
return ShowPlayerSpawnMenu( playerid );
|
||||
|
@ -1,5 +1 @@
|
||||
(+) You can now contribute to community crowdfunds using /crowdfunds.
|
||||
(+) 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%.
|
||||
(+) Adds "/b production" to see what the status of your business production is.
|
Loading…
Reference in New Issue
Block a user