Something wrong with this code??
#1

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
Reply


Messages In This Thread
Something wrong with this code?? - by Buzzbomb - 24.11.2010, 00:35
Re: Something wrong with this code?? - by iggy1 - 24.11.2010, 03:33

Forum Jump:


Users browsing this thread: 1 Guest(s)