23.12.2010, 12:08
The code that i told to put in OnPlayerRequestClass would solve your problem about the skin selection.
So, i think that his code will solve your problem:
So, i think that his code will solve your problem:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
new string[128], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "\\Leaders\\%skin.ini", pname);
if(!fexist(string)) //If the player do not have an account
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return true;
}
else //Else if the player have an account
{
SpawnPlayer(playerid); //Skin Selection Skipped
}
return false;
}