ClassID on spawn.
#1

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.
Reply
#2

save the class you set them to in a variable, then use that variable in OnPlayerSpawn
Reply
#3

Please example
Reply
#4

pawn Код:
// Top of script
new Class[MAX_PLAYERS];
// End of OnPlayerRequestClass
Class[playerid] = classid;
Reply
#5

Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)