[HELP] With OnPlayerRequestClass <----
#1

Код:
public OnPlayerRequestClass(playerid, classid)
{
    new file[128], pname[MAX_PLAYER_NAME];
    if(!dini_Exists(file))
    {
   	TogglePlayerSpectating(playerid,0);
    SpawnPlayer(playerid);
	}
	else
    format(file, sizeof(file), "\\Positions\\%s.ini", pname);//leader the name of your folder in scriptfiles
	SetPlayerPos(playerid,508.7362,-87.4335,998.9609);
	SetPlayerFacingAngle(playerid,0.0);
	SetPlayerCameraPos(playerid,508.7362,-83.4335,998.9609);
	SetPlayerCameraLookAt(playerid,508.7362,-87.4335,998.9609);
	return 1;
}
i want this code to skip skin selection if the file exists, but it isn't doing so
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)