SA-MP Forums Archive
OnPlayerRequestClass [HELP] - 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: OnPlayerRequestClass [HELP] (/showthread.php?tid=310438)



OnPlayerRequestClass [HELP] - Sting. - 12.01.2012

I want a command when I do /changeteam it will take me again to onplayerrequestclass. How do I do that?


Re: OnPlayerRequestClass [HELP] - [HiC]TheKiller - 12.01.2012

https://sampwiki.blast.hk/wiki/ForceClassSelection


Re: OnPlayerRequestClass [HELP] - ScriptJorkis - 12.01.2012

pawn Код:
CMD:changeteam(playerid, params[])
{
    SetPlayerHealth(playerid, 0);
    gTeam[playerid] = 0;
    ForceClassSelection(playerid);
    return 1;
}