SA-MP Forums Archive
Class - 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: Class (/showthread.php?tid=398630)



Class - Windrush - 10.12.2012

How To Create Class/Teams? Like In Trucking Gamemode

ex: Trucker,Busdriver,Pilot, etc...
Trucker = Delivering
BusDriver = Passenger
Pilot = Fly!!
Ex
pawn Код:
if(PlayerClass[playerid][Trucker]
How ?


Re: Class - RenovanZ - 10.12.2012

Just Create the enum, like this:
pawn Код:
enum cInfo
{
    Trucker,
    blah,
    blah,
    blah,
}
new ClassInfo[200][cInfo];
200 is the string of max cInfo, its random
Then you can use ex:
pawn Код:
ClassInfo[playerid][Trucker];