Quote:
Originally Posted by Mikkel_Pedersen
pawn Код:
new SpawnedOnce[MAX_PLAYERS]; //OnPlayerConnect(playerid) SpawnedOnce[playerid] = 0; //OnPlayerSpawn(playerid) if(SpawnedOnce[playerid] == 0) { //code to load info from their file //This will only get called if this is the first time they spawn (since they connected) SpawnedOnce[playerid] = 1; } //Other code you use at OnPlayerSpawn
|
And that must go under OnPlayerSpawn
I guess he tryed to load player position before he spawned player thats his mistake