04.07.2013, 16:25
how to do that? and make him spawn where he was before.
SpawnPlayer();
new IsRegistered[MAX_PLAYERS];
public OnPlayerRequestClass(playerid)
{
if(IsRegistered[playerid] == 1)
{
SpawnPlayer(playerid);
}
else
{
SetupPlayerForClassSelection(playerid)
}
return 1;
}
public OnPlayerRequestClass(playerid, classid) { if(classid == 0) GameTextForPlayer(playerid,"~r~Skin Selection",2000,6); { SetPlayerPos(playerid,1766.1969,-1945.0790,13.5643); SetPlayerCameraPos(playerid,1768.5718,-1942.9174,13.5615); SetPlayerFacingAngle(playerid,312.7264); SetPlayerCameraLookAt(playerid,1766.1969,-1945.0790,13.5643); } return 1; }