Код:
//----------------------------------[Paraquedistas]------------------------------------------------
if(strcmp(cmd, "/paraquedistas", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /paraquedistas [playerid1] [playerid2] [playerid3] [playerid4]");
return 1;
}
new para1;
new para2;
new para3;
new para4;
para1 = strval(tmp);
tmp = strtok(cmdtext, idx);
para2 = strval(tmp);
tmp = strtok(cmdtext, idx);
para3 = strval(tmp);
tmp = strtok(cmdtext, idx);
para4 = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
if (IsPlayerConnected(para1)){ GivePlayerWeapon(para1, 46, 0); SetPlayerPos(para1,1536.0, -1360.0, 1350.0);SetPlayerInterior(para1,0);PlayerInfo[para1][pInt] = 0;SendClientMessage(para1, COLOR_WHITE, "Vai!! Vai!! Vai!!");}
if ((IsPlayerConnected(para2)) && (para2>0)) { GivePlayerWeapon(para2, 46, 0); SetPlayerPos(para2,1536.0, -1345.0, 1350.0);SetPlayerInterior(para2,0);PlayerInfo[para2][pInt] = 0;SendClientMessage(para2, COLOR_RED, "Vai!! Vai!! Vai!!");}
if ((IsPlayerConnected(para3)) && (para3>0)) { GivePlayerWeapon(para3, 46, 0); SetPlayerPos(para3,1552.0, -1345.0, 1350.0);SetPlayerInterior(para3,0);PlayerInfo[para3][pInt] = 0;SendClientMessage(para3, COLOR_RED, "Vai!! Vai!! Vai!!");}
if ((IsPlayerConnected(para4)) && (para4>0)) { GivePlayerWeapon(para4, 46, 0); SetPlayerPos(para4,1552.0, -1360.0, 1350.0);SetPlayerInterior(para4,0);PlayerInfo[para4][pInt] = 0;SendClientMessage(para4, COLOR_RED, "Vai!! Vai!! Vai!!");}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo pode usar esse comando!");
}
}
return 1;
}