Skip Class Selection
#1

I need help with that, when i register and choose class like cop then i disconnect and connect and im in class selection again, how to make it that i wont be on class selection again and will be spawned automaticly with skin i choose before?
Код:
public LoadUser_data(playerid, name[], value[])
{
	INI_String("pPass", PlayerInfo[playerid][pPass], 129);
	INI_Int("aLevel", PlayerInfo[playerid][aLevel]);
	INI_Int("vLevel", PlayerInfo[playerid][vLevel]);
	INI_Int("pCash", PlayerInfo[playerid][pCash]);
	INI_Int("pScore", PlayerInfo[playerid][pScore]);
	INI_Int("pKills", PlayerInfo[playerid][pKills]);
	INI_Int("pDeaths", PlayerInfo[playerid][pDeaths]);
	INI_Int("pHoldups", PlayerInfo[playerid][pHoldups]);
	INI_Int("pCrimes", PlayerInfo[playerid][pCrimes]);
	INI_Int("pFined", PlayerInfo[playerid][pFined]);
	INI_Int("pArrests", PlayerInfo[playerid][pArrests]);
	INI_Int("pTakedowns", PlayerInfo[playerid][pTakedowns]);
	INI_Int("pTickets", PlayerInfo[playerid][pTickets]);
	INI_Int("pRope", PlayerInfo[playerid][pRope]);
	INI_Int("pPaintCan", PlayerInfo[playerid][pPaintCan]);
	INI_Int("pScissors", PlayerInfo[playerid][pScissors]);
	INI_Int("pKits", PlayerInfo[playerid][pKits]);
	INI_Int("vLock", PlayerInfo[playerid][vLock]);
	INI_Int("Helper", PlayerInfo[playerid][Helper]);
	INI_Int("hHelper", PlayerInfo[playerid][hHelper]);
	INI_Int("pJoins", PlayerInfo[playerid][pJoins]);
	INI_Int("pMaterials", PlayerInfo[playerid][pMaterials]);
	INI_Int("pWarns", PlayerInfo[playerid][pWarns]);
	INI_Int("pKicks", PlayerInfo[playerid][pKicks]);
	INI_Int("Banned", PlayerInfo[playerid][Banned]);
	INI_Int("jTime", PlayerInfo[playerid][jTime]);
	INI_Float("pArmour", PlayerInfo[playerid][pArmour]);
	INI_Float("pHealth", PlayerInfo[playerid][pHealth]);
	INI_Int("pWanted", PlayerInfo[playerid][pWanted]);
	INI_Int("cTime", PlayerInfo[playerid][cTime]);
    return 1;
}
Reply
#2

Just put SpawnPlayer(playerid); on OnPlayerConnect
Reply
#3

doesnt work
Reply
#4

Add SpawnPlayer(playerid); after ur OnPlayerConnect but if u have stufff like ShowPlayerDialog for password,etc, then put SpawnPlayer(playerid); at last of ur OnPlayerConnect
Reply
#5

pawn Код:
SetSpawnInfo( playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 0, 0 0, 0, 0, 0 );
 Spawn(playerid);
 // put this where u have the login part of ur server..... if u have no login.... then put this under onplayerconnect && try
Reply
#6

no one of these work i still get class selection.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)