Guest User

Untitled

a guest
Oct 23rd, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. if(strcmp(cmdtext, "/barreiramid 1", true)==0 || strcmp(cmdtext, "/brmid 1", true)==0)
  2. {
  3. new org = GetPlayerOrg(playerid);
  4. if(org == 21)
  5. {
  6. if(PlayerInfo[playerid][pJailed] != 0)
  7. {
  8. SendClientMessage(playerid,0xA0FFFFAA," Você não pode usar este comando preso!");
  9. return 1;
  10. }
  11. if(PlayerPaintballing[playerid] != 0)
  12. {
  13. SendClientMessage(playerid,COLOR_YELLOW," Você não pode por barreiras no evento!");
  14. return 1;
  15. }
  16. if (pRoadmid[playerid] != 0) return SendClientMessage(playerid, COLOR_GREY, "Você só pode criar 1 barreira por vez, /rbrmid 1 - para remover sua barrigada");
  17. new Float:X, Float:Y, Float:Z, Float:A;
  18. GetPlayerPos(playerid, X, Y, Z);
  19. GetPlayerFacingAngle(playerid, A);
  20. pRoadmid[playerid] = F_CreateObject(3578, X, Y, Z, 0.0, 0.0, A+180, 300.0);
  21. SetPlayerPos(playerid, X, Y, Z+4);
  22. GameTextForPlayer(playerid, "~w~Blockeio ~r~Criado", 5000, 5);
  23. SendClientMessage(playerid, COLOR_GREEN, "Barreira Implantada... Use /rbrmid 1 Para Remove-la!");
  24. /*new message[128];
  25. format(message,sizeof(message), "\n\n\n\n\n\n\n\nBarreira Criada\nPor: %s", PlayerName(playerid));
  26. Create3DTextLabel(message, COLOR_AZULBB, 0.0, 0.0, 0.0, 2.0, 0, 0);
  27. Create3DTextLabel("Barreira Criada Por: %s",0xff00ffff,x,y,Z+2,30.0,0", PlayerName(playerid));*/
  28. format(string, sizeof(string), "Aviso: Uma Barreira de mid foi criado por %s.", PlayerName(playerid));
  29. for(new i = 0; i < MAX_PLAYERS; i++)
  30. {
  31. if(IsPlayerConnected(i))
  32. {
  33. if(org == 21)
  34. {
  35. SendClientMessage(i, TEAM_BLUE_COLOR, string);
  36. if (PlayerInfo[i][pCargo] >= 5 || PlayerInfo[i][pLider] > 0)
  37. {
  38. //SendClientMessage(i, TEAM_BLUE_COLOR, "Você pode remover todas as barreiras usando /rbrgangall");
  39. }
  40. }
  41. }
  42. }
  43. }
  44. return 1;
  45. }
Add Comment
Please, Sign In to add comment