[HELP]call this function - 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: [HELP]call this function (
/showthread.php?tid=282768)
[HELP]call this function -
TheBluec0de - 12.09.2011
I created this function to choose the skin only when it leads me to the selection of class I skin appears under the bar, why?
Код:
YCMD:skin(playerid, params[], help)
{
#pragma unused params
#pragma unused help
CallLocalFunction("OnPlayerRequestClass","d",playerid);
return 1;
}
Re: [HELP]call this function -
TheBluec0de - 12.09.2011
uh

?
Re: [HELP]call this function -
Vince - 12.09.2011
ForceClassSelection?
Re: [HELP]call this function -
TheBluec0de - 12.09.2011
NO,
Call OnPlayerRequestClass for selection skin, but not appear bar...
Re: [HELP]call this function -
TheBluec0de - 12.09.2011
uh

?
Re: [HELP]call this function -
TheBluec0de - 12.09.2011
so

?
Re: [HELP]call this function -
Amit_B - 12.09.2011
If you want just to call OnPlayerRequestClass use:
pawn Код:
OnPlayerRequestClass(playerid,0); // 0 as the classid
Or, if you want to return the player to the class selection, use
pawn Код:
ForcePlayerClassSelection(playerid);
SetPlayerHealth(playerid,0.0);
Re: [HELP]call this function -
TheBluec0de - 12.09.2011
thank you