14.10.2011, 10:06
I dont know what it is but when a player Connects ID 0 always respawns ...... Someone please Help me...
pawn Код:
forward SpawnLastSaved(playerid);
public SpawnLastSaved(playerid)
{
new name[MAX_PLAYER_NAME], file[256];
GetPlayerName(i, name, sizeof(name));
format(file, sizeof(file), ARS_ACCOUNTS, name);
SetPlayerPos(i, dini_Float(file, "LocX"),dini_Float(file,"LocY"),dini_Float(file,"LocZ"));
SetPlayerFacingAngle(i,dini_Float(file,"LocA"));
SetPlayerInterior(i,dini_Int(file,"LocI"));
SpawnPlayer(i);
return 1;
}