Advertisement
Guest User

CoD /coletepolicial BY YUDI_STREET

a guest
Nov 24th, 2011
476
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. //|||||||||||||
  2. //|Yudi_StreeT|
  3. //|||||||||||||
  4.  
  5. if(!strcmp(cmdtext,"/coletepolicial",true))
  6. {
  7. if(PlayerInfo[playerid][pJailed] != 0)
  8. {
  9. SendClientMessage(playerid,COLOR_YELLOW," Você não pode usar esté comando na cadeia!");
  10. return 1;
  11. }
  12. if(OnDuty[playerid] != 1)
  13. {
  14. SendClientMessage(playerid, COLOR_GREY, " Você não Bateu o cartão!");
  15. return 1;
  16. }
  17. if(IsACop(playerid))
  18. {
  19. if(Equipamentos[playerid] == 1)
  20. {
  21. RemovePlayerAttachedObject(playerid,1);
  22. Equipamentos[playerid] = 0;
  23. return 1;
  24. }
  25. if(Equipamentos[playerid] == 0)
  26. {
  27. SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);
  28. SendClientMessage(playerid,COLOR_Yudi,"Você colocou seu Colete !");
  29. Equipamentos[playerid] = 1;
  30. return 1;
  31. }
  32. }
  33. else
  34. {
  35. SendClientMessage(playerid,COLOR_Yudi2,"Você não é um COP.");
  36. }
  37. return 1;
  38. }
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement