Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- [FilterScript] nV_robbank
- BY NENO
- */
- #include <a_samp>
- #include <zcmd>
- #define COLOR_ORANGE 0xFF641AFF
- new rb;
- //------------------------------------------------------------------------------
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" By Neno ");
- print("--------------------------------------\n");
- Create3DTextLabel("Banka Las Venturas...\nKucaj /robbank da pljackas banku!", 0xFF641AFF, 2194.4883,1677.0996,12.3672, 40.0, 0);
- rb = CreatePickup(1239, 2, 2194.4883,1677.0996,12.3672, -1);
- return 1;
- }
- //------------------------------------------------------------------------------
- public OnFilterScriptExit()
- {
- DestroyPickup(rb);
- return 1;
- }
- //------------------------------------------------------------------------------
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == rb)
- {
- GameTextForPlayer(playerid,"~r~[FilterScript] nV_robbank:~w~/robbank",5000,5);
- }
- return 1;
- }
- //------------------------------------------------------------------------------
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:robbank(playerid, params[])
- {
- if( IsPlayerInRangeOfPoint( playerid, 3.0, 2194.4883,1677.0996,12.3672) )
- {
- new rb = random(3);
- if(rb == 1 || rb == 2)
- {
- GivePlayerMoney(playerid, 5000);
- new pname[MAX_PLAYER_NAME], string[58 + MAX_PLAYER_NAME];
- GetPlayerName(playerid, pname, sizeof(pname));
- format(string, sizeof(string), "%s je opljackao banku!", pname);
- SendClientMessageToAll(COLOR_ORANGE, string);
- SetPlayerAttachedObject(playerid, 0, 1550, 1, 0.168857, -0.223739, 0.016255, 116.071144, 104.168029, 42.844120, 1.000000, 1.000000, 1.000000 );
- }
- else
- {
- GivePlayerMoney(playerid, 0);
- new pname[MAX_PLAYER_NAME], string[58 + MAX_PLAYER_NAME];
- GetPlayerName(playerid, pname, sizeof(pname));
- format(string, sizeof(string), "%s je pokusao opljackati banku,ali nije uspio!", pname);
- SendClientMessageToAll(COLOR_ORANGE, string);
- }
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment