04.12.2012, 19:28
Choose one option. A global variable for all the players or not?
According to your previous thread, you were using it for all the players, on this not.
In that case;
According to your previous thread, you were using it for all the players, on this not.
In that case;
pawn Код:
// Global variable
new
gVariable
;
CMD:XXXXXX (playerid, params[])
{
if(gVariable != 0 && IsPlayerInRangeOfPoint(playerid,XXXXXXXXXXXXX))
{
SendClientMessage(playerid, 0xFFFFFFFF, "XXXXXXXXXXXXXX");
DestroyPlayerObject(playerid, XXXXX);
CreatePlayerObject(XXXXXXXXXXXXXXXXX);
CreatePlayerObject(XXXXXXXXXXXXXXXXX);
CreatePlayerObject(XXXXXXXXXXXXXXXXX);
CreatePlayerObject(XXXXXXXXXXXXXXXXX);
CreatePlayerObject(XXXXXXXXXXXXXXXXX);
}
return 1;
}