SA-MP Forums Archive
[Help] City Locked Classes - 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: [Help] City Locked Classes (/showthread.php?tid=260239)



[Help] City Locked Classes - Placebo - 07.06.2011

I'm messing around with grandlarc's code and I'm trying to have city locked classes.
So for example, if you pick Los Santos, you can only pick Grove skins.

The thing is, I can't figure out how to modify grandlarc's code to only have certain skins for certain cities.

Can someone help me with the logic?

EDIT:
This question comes up because classes are added on script initialization, so I can't check teams until after the city is selected.