30.08.2015, 02:07
Quote:
PHP код:
|
Cуdigo corrigido:
PHP код:
public OnPlayerSpawn(playerid)
{
if(SpwRnd[playerid] == true)
{
new Random = random(sizeof(SpwRnd));
RealPosition[playerid][0] = RandomSpawns[Random][0];
RealPosition[playerid][1] = RandomSpawns[Random][1];
RealPosition[playerid][2] = RandomSpawns[Random][2];
SetPlayerPos(playerid, RealPosition[playerid][0], RealPosition[playerid][1], RealPosition[playerid][Random][2]);
SpwRnd[playerid] = false;
}
return 1;
}