Guest User

Search

a guest
Jan 27th, 2015
530
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3.  
  4. public OnGameModeInit()
  5. {
  6. Create3DTextLabel("Upisite /search\n Da pretrazite kontenjer", 0x008080FF, 1829.5404,-1113.9504,23.8765,265.1322, 0, 0);
  7. }
  8. CMD:search(playerid,paramas[])
  9. {
  10. if(IsPlayerInRangeOfPoint(playerid,2.0,1829.5404,-1113.9504,23.8765))
  11. {
  12. new hand2=random(8);
  13. if (hand2==3) { GivePlayerWeapon(playerid, 3, 1); }
  14. else if (hand2==2) { GivePlayerWeapon(playerid, 4, 1); }
  15. else if (hand2==3) { GivePlayerWeapon(playerid, 5, 1); }
  16. }
  17. else
  18. {
  19. SendClientMessage(playerid,-1,"ERROR: Niste kod kontenjera !");
  20. }
  21. return 1;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment