Guest User

Untitled

a guest
Oct 23rd, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. if(strcmp(cmdtext, "/removerbarreira 1", true)==0 || strcmp(cmdtext, "/rbrmid 1", true)==0)
  2. {
  3. new org = GetPlayerOrg(playerid);
  4. if(org == 21)
  5. {
  6. if (pRoadmid[playerid] != 0)
  7. {
  8. RemoveRoadmid(playerid);
  9. SendClientMessage(playerid, COLOR_GREY, "Você retirou a sua barreira!");
  10. Delete3DTextLabel(string2:0);
  11. }
  12. else { return SendClientMessage(playerid, COLOR_GREY, "Você não criou uma barreira!"); }
  13. format(string, sizeof(string), "Aviso: Uma Barreira de mid foi destruída por %s.", PlayerName(playerid));
  14. for(new i = 0; i < MAX_PLAYERS; i++)
  15. {
  16. if(IsPlayerConnected(i))
  17. {
  18. if(org == 21)
  19. {
  20. SendClientMessage(i, TEAM_BLUE_COLOR, string);
  21. }
  22. }
  23. }
  24. }
  25. return 1;
  26. }
Add Comment
Please, Sign In to add comment