Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- public OnGameModeInit()
- {
- Create3DTextLabel("Upisite /search\n Da pretrazite kontenjer", 0x008080FF, 1829.5404,-1113.9504,23.8765,265.1322, 0, 0);
- }
- CMD:search(playerid,paramas[])
- {
- if(IsPlayerInRangeOfPoint(playerid,2.0,1829.5404,-1113.9504,23.8765))
- {
- new hand2=random(8);
- if (hand2==3) { GivePlayerWeapon(playerid, 3, 1); }
- else if (hand2==2) { GivePlayerWeapon(playerid, 4, 1); }
- else if (hand2==3) { GivePlayerWeapon(playerid, 5, 1); }
- }
- else
- {
- SendClientMessage(playerid,-1,"ERROR: Niste kod kontenjera !");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment