Skip Class Selection
#1

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

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

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

@****** 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;
}
Reply
#5

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

Try printing GetPlayerClanID to check if its 4 or not-
Reply
#6

its because im trying something, but will try
Reply
#7

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
Reply
#8

Edit : Nvm.
Reply
#9

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


Forum Jump:


Users browsing this thread: 1 Guest(s)