Advertisement
Guest User

Untitled

a guest
Mar 30th, 2015
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. if(strcmp(cmd, "/tazer", true) ==0 || strcmp(cmd, "/ta", true) ==0)
  2. {
  3. if(IsPlayerConnected(playerid))
  4. {
  5. if(IsACop(playerid))
  6. {
  7. new Ammo = GetPlayerAmmo(playerid);
  8. if(Ammo < 0)
  9. return 1;
  10. if(GetPlayerWeapon(playerid)==24)
  11. {
  12. AC_RemovePlayerWeapon(playerid, 24);
  13. AC_GivePlayerWeapon(playerid,23,Ammo);
  14. format(string, sizeof(string), "* %s unholsters his/her tazer.", sendername);
  15. ProxDetector(30.0, playerid, string, COLOR_SKYBLUE,COLOR_SKYBLUE,COLOR_SKYBLUE,COLOR_SKYBLUE,COLOR_SKYBLUE);
  16. }
  17. else if(GetPlayerWeapon(playerid)==23)
  18. {
  19. AC_RemovePlayerWeapon(playerid, 23);
  20. AC_GivePlayerWeapon(playerid,24,Ammo);
  21. format(string, sizeof(string), "* %s holsters his/her tazer.", sendername);
  22. ProxDetector(30.0, playerid, string, COLOR_SKYBLUE,COLOR_SKYBLUE,COLOR_SKYBLUE,COLOR_SKYBLUE,COLOR_SKYBLUE);
  23. }
  24. }
  25. else return SendClientMessage(playerid, COLOR_GREY, "You are not a Cop!");
  26. }
  27. return 1;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement