24.11.2010, 00:35
public OnPlayerRequestClass(playerid)
{
SetTimer("SpawnLastSaved",100,false);
return 1;
}
forward SpawnLastSaved(playerid);
public SpawnLastSaved(playerid)
{
new name[MAX_PLAYER_NAME], file[256];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), ARS_SERVERFILES, name);
SetPlayerPos(playerid, dini_Float(file, "LocX"),dini_Float(file,"LocY"),dini_Float(file,"L ocZ"));
SetPlayerFacingAngle(playerid,dini_Float(file,"Loc A"));
SetPlayerInterior(playerid,dini_Int(file,"LocI"));
SpawnPlayer(playerid);
return 1;
}
My problem is when i login im the only person well i spawned where i last was well if someone else joins it respawns me again
{
SetTimer("SpawnLastSaved",100,false);
return 1;
}
forward SpawnLastSaved(playerid);
public SpawnLastSaved(playerid)
{
new name[MAX_PLAYER_NAME], file[256];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), ARS_SERVERFILES, name);
SetPlayerPos(playerid, dini_Float(file, "LocX"),dini_Float(file,"LocY"),dini_Float(file,"L ocZ"));
SetPlayerFacingAngle(playerid,dini_Float(file,"Loc A"));
SetPlayerInterior(playerid,dini_Int(file,"LocI"));
SpawnPlayer(playerid);
return 1;
}
My problem is when i login im the only person well i spawned where i last was well if someone else joins it respawns me again