ClassID on spawn. - 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: ClassID on spawn. (
/showthread.php?tid=68426)
ClassID on spawn. -
xbatista - 10.03.2009
ClassID is in:
nPlayerRequestClass
SetPlayerTeamFromClass(classid)
How to create it on OnPlayerSpawn(playerid, classid)









To be: if (classid == xx)
{
Give gun(playerid,xx,xx)
}
Because classid can't be in OnPlayerSpawn.
I've started scripting GTA:SA now in this day so.... :P
I have an experience from counter-strike scripting.
Re: ClassID on spawn. -
[RP]Rav - 10.03.2009
save the class you set them to in a variable, then use that variable in OnPlayerSpawn
Re: ClassID on spawn. -
xbatista - 10.03.2009
Please example
Re: ClassID on spawn. -
ICECOLDKILLAK8 - 10.03.2009
pawn Код:
// Top of script
new Class[MAX_PLAYERS];
// End of OnPlayerRequestClass
Class[playerid] = classid;
Re: ClassID on spawn. -
xbatista - 10.03.2009
Thanks!