Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmdtext, "/barreiramid 1", true)==0 || strcmp(cmdtext, "/brmid 1", true)==0)
- {
- new org = GetPlayerOrg(playerid);
- if(org == 21)
- {
- if(PlayerInfo[playerid][pJailed] != 0)
- {
- SendClientMessage(playerid,0xA0FFFFAA," Você não pode usar este comando preso!");
- return 1;
- }
- if(PlayerPaintballing[playerid] != 0)
- {
- SendClientMessage(playerid,COLOR_YELLOW," Você não pode por barreiras no evento!");
- return 1;
- }
- if (pRoadmid[playerid] != 0) return SendClientMessage(playerid, COLOR_GREY, "Você só pode criar 1 barreira por vez, /rbrmid 1 - para remover sua barrigada");
- new Float:X, Float:Y, Float:Z, Float:A;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, A);
- pRoadmid[playerid] = F_CreateObject(3578, X, Y, Z, 0.0, 0.0, A+180, 300.0);
- SetPlayerPos(playerid, X, Y, Z+4);
- GameTextForPlayer(playerid, "~w~Blockeio ~r~Criado", 5000, 5);
- SendClientMessage(playerid, COLOR_GREEN, "Barreira Implantada... Use /rbrmid 1 Para Remove-la!");
- /*new message[128];
- format(message,sizeof(message), "\n\n\n\n\n\n\n\nBarreira Criada\nPor: %s", PlayerName(playerid));
- Create3DTextLabel(message, COLOR_AZULBB, 0.0, 0.0, 0.0, 2.0, 0, 0);
- Create3DTextLabel("Barreira Criada Por: %s",0xff00ffff,x,y,Z+2,30.0,0", PlayerName(playerid));*/
- format(string, sizeof(string), "Aviso: Uma Barreira de mid foi criado por %s.", PlayerName(playerid));
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(org == 21)
- {
- SendClientMessage(i, TEAM_BLUE_COLOR, string);
- if (PlayerInfo[i][pCargo] >= 5 || PlayerInfo[i][pLider] > 0)
- {
- //SendClientMessage(i, TEAM_BLUE_COLOR, "Você pode remover todas as barreiras usando /rbrgangall");
- }
- }
- }
- }
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment