Skipping skin selection And [Dini]
#1

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
Reply


Messages In This Thread
Skipping skin selection And [Dini] - by [JnA]DukeNukem - 23.12.2010, 16:53
Re: Skipping skin selection And [Dini] - by cessil - 23.12.2010, 20:30
Re: Skipping skin selection And [Dini] - by Anthonyx3' - 23.12.2010, 22:06
Re: Skipping skin selection And [Dini] - by Lorenc_ - 24.12.2010, 10:28

Forum Jump:


Users browsing this thread: 1 Guest(s)