SA-MP Forums Archive
Skipping skin selection And [Dini] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Skipping skin selection And [Dini] (/showthread.php?tid=202235)



Skipping skin selection And [Dini] - [JnA]DukeNukem - 23.12.2010

All i want to do is that
Код:
if(!dini_Exists(file))
(if is player registered) that player skips player selection screen and spawns at
Код:
new file[128], pname[MAX_PLAYER_NAME];
	format(file, sizeof(file), "\\Positions\\%s.ini", pname);//leader the name of your folder in scriptfiles
	if( !dini_Exists( file ) ) return 0; // file doesn't exist, don't set their pos.
	SetPlayerPos( playerid, dini_Float( file, "PosX" ), dini_Float( file, "PosY" ), dini_Float( file, "PosZ" ) );
so if this exists
Код:
new file[128], pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(file, sizeof(file), "\\Positions\\%s.ini", pname);
    if(!dini_Exists(file))
Skin selection gets skipped


Thanks in advance


Re: Skipping skin selection And [Dini] - cessil - 23.12.2010

I've never skipped class selection before but you could try SpawnPlayer(playerid), I'd just SetPlayerSkin on OnPlayerRequestClass


Re: Skipping skin selection And [Dini] - Anthonyx3' - 23.12.2010

On player login do
pawn Код:
SpawnPlayer(playerid);
Or on player register.


Re: Skipping skin selection And [Dini] - Lorenc_ - 24.12.2010

Toggle player specatating then spawn the player, that shud do.