14.06.2011, 01:28
(
Последний раз редактировалось Shadoww5; 14.06.2011 в 02:21.
)
PHP код:
if(strcmp(cmd, "/trazercvs", true) == 0)
{
new Float:PlayerPos[3], string[128], nome[24];
GetPlayerPos(playerid,PlayerPos[0],PlayerPos[1],PlayerPos[2]);
for(new x = 0; x < MAX_PLAYERS; x ++)
{
if(PlayerInfo[x][pCV] >= 5)
{
GetPlayerName(playerid, nome, 24);
SetPlayerPos(x,PlayerPos[0],PlayerPos[1],PlayerPos[2]);
format(string, sizeof(string), "Adm.Cmd: %s trouxe todos os CVS.", nome);
SendClientMessageToAll(COLOR_ADM, string);
return 1;
}
}
return 1;
}
if(strcmp(cmd, "/trazerbopes", true) == 0)
{
new Float:PlayerPos[3], string[128], nome[24];
GetPlayerPos(playerid,PlayerPos[0],PlayerPos[1],PlayerPos[2]);
for(new x = 0; x < MAX_PLAYERS; x ++)
{
if(PlayerInfo[x][pBOPE] >= 5)
{
GetPlayerName(playerid, nome, 24);
SetPlayerPos(x,PlayerPos[0],PlayerPos[1],PlayerPos[2]);
format(string, sizeof(string), "Adm.Cmd: %s trouxe todos os BOPE.",nome);
SendClientMessageToAll(COLOR_ADM, string);
}
}
return 1;
}