Skip Class Selection - 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)
+--- Thread: Skip Class Selection (
/showthread.php?tid=423723)
Skip Class Selection -
Beljulji - 19.03.2013
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;
}
Re: Skip Class Selection -
Avi Raj - 19.03.2013
Just put
SpawnPlayer(playerid); on OnPlayerConnect
Re: Skip Class Selection -
Beljulji - 19.03.2013
doesnt work
Re: Skip Class Selection -
Gamer_007 - 19.03.2013
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
Re: Skip Class Selection -
Glad2BeHere - 19.03.2013
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
Re: Skip Class Selection -
Beljulji - 19.03.2013
no one of these work i still get class selection.