can rob businesses now

This commit is contained in:
Lorenc 2018-04-02 00:24:07 +10:00
parent 9264220923
commit 4491fae0fd
5 changed files with 469 additions and 242 deletions

File diff suppressed because it is too large Load Diff

View File

@ -164,6 +164,7 @@
#define DIALOG_AIRPORT 1153 #define DIALOG_AIRPORT 1153
#define DIALOG_CASINO_BAR 1154 #define DIALOG_CASINO_BAR 1154
#define DIALOG_ACC_EMAIL 1155 #define DIALOG_ACC_EMAIL 1155
#define DIALOG_BUSINESS_SECURITY 1156
/* ** Hooks ** */ /* ** Hooks ** */
hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] ) hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )

View File

@ -37,8 +37,8 @@ hook OnGameModeInit( )
// Robbery Info // Robbery Info
CreateRobberyNPC( "Visage Cashier", 2500, 2601.9226, 1567.5959, 1508.3521, 0.0, 11, VISAGE_WORLD ); // Mafia CreateRobberyNPC( "Visage Cashier", 2500, 2601.9226, 1567.5959, 1508.3521, 0.0, 11, VISAGE_WORLD ); // Mafia
CreateRobberyNPC( "Visage Cashier", 2500, 2607.0059, 1567.5959, 1508.3521, 0.0, 172, VISAGE_WORLD ); // Mafia CreateRobberyNPC( "Visage Cashier", 2500, 2607.0059, 1567.5959, 1508.3521, 0.0, 172, VISAGE_WORLD ); // Mafia
CreateRobberyCheckpoint( "Visage Casino - Safe 1", 4000, 2609.208984, 1566.640014, 1507.802001, -90.00000, 79 ); CreateRobberyCheckpoint( "Visage Casino - Safe 1", 4000, 2609.208984, 1566.640014, 1507.802001, -90.00000, VISAGE_WORLD );
CreateRobberyCheckpoint( "Visage Casino - Safe 2", 4000, 2609.208984, 1565.798950, 1507.802001, -90.00000, 79 ); CreateRobberyCheckpoint( "Visage Casino - Safe 2", 4000, 2609.208984, 1565.798950, 1507.802001, -90.00000, VISAGE_WORLD );
// Create ATM // Create ATM
CreateATM( 2557.137939, 1576.037963, 1508.003051, -90.000000 ); CreateATM( 2557.137939, 1576.037963, 1508.003051, -90.000000 );

View File

@ -16,6 +16,7 @@
#define SendUsage(%0,%1) (SendClientMessageFormatted(%0,-1,"{FFAF00}[USAGE]{FFFFFF} " # %1)) #define SendUsage(%0,%1) (SendClientMessageFormatted(%0,-1,"{FFAF00}[USAGE]{FFFFFF} " # %1))
#define SendError(%0,%1) (SendClientMessageFormatted(%0,-1,"{F81414}[ERROR]{FFFFFF} " # %1)) #define SendError(%0,%1) (SendClientMessageFormatted(%0,-1,"{F81414}[ERROR]{FFFFFF} " # %1))
#define SendServerMessage(%0,%1) (SendClientMessageFormatted(%0,-1,"{C0C0C0}[SERVER]{FFFFFF} " # %1)) #define SendServerMessage(%0,%1) (SendClientMessageFormatted(%0,-1,"{C0C0C0}[SERVER]{FFFFFF} " # %1))
#define SendClientMessageToAllFormatted(%0) (SendClientMessageFormatted(INVALID_PLAYER_ID, %0))
#define sprintf(%1) (format(g_szSprintfBuffer, sizeof(g_szSprintfBuffer), %1), g_szSprintfBuffer) #define sprintf(%1) (format(g_szSprintfBuffer, sizeof(g_szSprintfBuffer), %1), g_szSprintfBuffer)
#define SetObjectInvisible(%0) (SetDynamicObjectMaterialText(%0, 0, " ", 140, "Arial", 64, 1, -32256, 0, 1)) #define SetObjectInvisible(%0) (SetDynamicObjectMaterialText(%0, 0, " ", 140, "Arial", 64, 1, -32256, 0, 1))
#define fRandomEx(%1,%2) (floatrandom(%2-%1)+%1) #define fRandomEx(%1,%2) (floatrandom(%2-%1)+%1)
@ -49,11 +50,11 @@ stock SendClientMessageFormatted( playerid, colour, format[ ], va_args<> )
va_format( out, sizeof( out ), format, va_start<3> ); va_format( out, sizeof( out ), format, va_start<3> );
if ( !IsPlayerConnected( playerid ) ) { if ( playerid == INVALID_PLAYER_ID ) {
SendClientMessageToAll( colour, out ); return SendClientMessageToAll( colour, out );
return 0; } else {
} return SendClientMessage( playerid, colour, out );
return SendClientMessage( playerid, colour, out ); }
} }
// purpose: trim a string // purpose: trim a string

View File

@ -1,5 +1,8 @@
(+) Implements cash cards. A way for prizes to be given out to members easily. Use /cashcard to redeem. (+) Implements cash cards. A way for prizes to be given out to members easily. Use /cashcard to redeem.
(+) Businesses can now be robbed by burglars. Businesses must purchase security upgrades to prevent theft!!!
(+) Adds Trucking to the San Fierro GPS. (+) Adds Trucking to the San Fierro GPS.
(/) Roadblocks and spike strips can be created by players, and won't be removed unless they are not near them. (/) Roadblocks and spike strips can be created by players, and won't be removed unless they are not near them.
(/) /drball will only remove your roadblocks (unless you're an admin). (/) /drball will only remove your roadblocks (unless you're an admin).
(/) You need at least 250 score to use "/setspike" and "/crb". (/) You need at least 250 score to use "/setspike" and "/crb".
(/) Safes now open more smoothly, and look visually more appealing!
(/) "/richlist" shows all administrators.