SA-MP Forums Archive
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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Skip Class Selection (/showthread.php?tid=254104)



Skip Class Selection - fissekarl - 09.05.2011

How to skip the class selection when pressing f4 when you are dead?


Re: Skip Class Selection - Cameltoe - 09.05.2011

Search : http://forum.sa-mp.com/showthread.ph...lass+selection


Re: Skip Class Selection - CraZy_KiLLaH - 09.05.2011

Clicking F4 and dieing will lead you to Class selection.
Perhaps you are looking for this..
https://sampforum.blast.hk/showthread.php?tid=100356


Re: Skip Class Selection - fissekarl - 09.05.2011

@****** Sounds nice, but it would be useless if I just used y_class for 1 line.

@Cameltoe I did.

I have this function

pawn Код:
if(GetPlayerClanID(playerid) == 4)
    {
        SetTimerEx("SkipSpawn",2000,0,"i",playerid);
    }
Under OnPlayerRequestClass

and this

pawn Код:
public SkipSpawn(playerid)
{
    gTeam[playerid] = 4;
    SetClan(playerid, 4);
    SetSpawnInfo(playerid, 4, x,y,z,a, 0, 0, 0, 0, 0, 0);
    SpawnPlayer(playerid);
    return 1;
}



Re: Skip Class Selection - Cameltoe - 09.05.2011

Why do you skip class selection only if(GetPlayerClanID(playerid) == 4) ?

Try printing GetPlayerClanID to check if its 4 or not-


Re: Skip Class Selection - fissekarl - 09.05.2011

its because im trying something, but will try


Re: Skip Class Selection - fissekarl - 09.05.2011

im not so good with print and stuff so I just did a cmd to show what clan id i am and it said 4.. but is not working


Re: Skip Class Selection - Cameltoe - 09.05.2011

Edit : Nvm.


Re: Skip Class Selection - fissekarl - 09.05.2011

when I died it spammed me.. in the console it said "fissekarl died 255" a million times