Idiot question, Detecting if the player have a saved position?
#1

ok, so, with my account system. it skips skin selection if the player logs in, And loads their saved position from when they logged out, but, new players, If a new player doesnt have saved cords, i want to spawn them somewhere, but i cant get them to :S

Код:
public OnPlayerRequestClass(playerid, classid)
{
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_RED, "You must sign in!");
if(gPlayerLogged[playerid] == 1)
{
SetTimerEx("SkipSpawn",1,0,"i",playerid);
}
return 1;
}

public SkipSpawn(playerid)
{
SetSpawnInfo(playerid,NO_TEAM, 100, PlayerInfo[playerid][pPosX],PlayerInfo[playerid][pPosY],PlayerInfo[playerid][pPosZ],PlayerInfo[playerid][pRotation],22,55,34,55,32,5555);
SpawnPlayer(playerid);
return 1;
}
Reply


Messages In This Thread
Idiot question, Detecting if the player have a saved position? - by -Rebel Son- - 10.02.2011, 16:44
Re: Idiot question, Detecting if the player have a saved position? - by _Tommy - 10.02.2011, 16:57
Re: Idiot question, Detecting if the player have a saved position? - by -Rebel Son- - 10.02.2011, 20:38

Forum Jump:


Users browsing this thread: 1 Guest(s)