15.04.2013, 13:13
Quote:
If all your player variables still hold the correct values you should be able to save in OnGameModeExt, but keep in mind PVars reset when a player disconnects.
EDIT: You could set the players camera position somewhere else until you spawn them properly. |
PHP код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public OnPlayerConnect(playerid) {
TogglePlayerSpectating(playerid, true);
return 1;
}
I already got one, but that impossible to save the player data when I'm closing the CMD window?