Advertisement
LielBro124

Untitled

Mar 2nd, 2015
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. #include a_samp
  2. #include zcmd
  3. #include sscanf2
  4.  
  5. CMD:giveweapon(playerid,params[])
  6. {
  7. if(!IsPlayerAdmin(playerid)) return SendClientMessage (playerid,0xFF0000AA,"you are not admin");
  8. new id, gun, ammo;
  9. if(sscanf(params,"uii", id, gun, ammo)) return SendClientMessage(playerid, -1,"USAGE: /GiveWeapon [ID] [WeaponID] [ammo]");
  10. if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid,0xFF0000FF,"ERROR: Player is not connected");
  11. if(gun > 47 || gun < 1) return SendClientMessage(playerid, -1,"GUN ID'S: 1 - 47");
  12. if(ammo > 2000 || ammo < 1) return SendClientMessage(playerid, -1,"Ammo: 1 - 2000");
  13. GivePlayerWeapon(id, gun, ammo);
  14. return 1;
  15. }
  16.  
  17. CMD:phoneanim(playerid,params[])
  18. {
  19. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
  20. return 1;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement