26.01.2017, 12:11
Quote:
What about second one?(Also i dont have any problem with first one)
|
Код:
new rand = random(sizeof(TruckerSpawn)); static last[MAX_PLAYERS],current[MAX_PLAYERS]; while( last[playerid] == current[playerid]) { current[playerid] = random(sizeof(TruckerSpawn)); } SetPlayerPos(playerid, TruckerSpawn[current[playerid]][SpawnX], TruckerSpawn[current[playerid]][SpawnY], TruckerSpawn[current[playerid]][SpawnZ]); SetPlayerFacingAngle(playerid, TruckerSpawn[current[playerid]][SpawnAngle]); SetCameraBehindPlayer(playerid); last[playerid] = current[playerid];