24.06.2011, 18:47
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/incendio", true) == 0)
{
new Float:Pos[3];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(VARIAVEL[i] == 1) { SetPlayerCheckpoint(i, Pos[0], Pos[1], Pos[2], 8.0); }
}
return 1;
}
return 0;
}