Posts: 814
Threads: 190
Joined: Feb 2016
Reputation:
0
Hello if i have 2 classes [Medic, Police] In the Request of the class in police it show the 3 skins and the place of spawn and in medics it show 3 skins and the place of spawn?
btw, i tried to do but failed
Posts: 1,506
Threads: 13
Joined: Jun 2015
Instead of just bumping and waiting for a reply, learn something!
- Learn arrays and how do they work! Check out some codes, for example Gammix' code.
- Learn looping.
- Make a dynamic array based team system. Please don't ****** for fuck sake, try making it yourself for the sake of your existence.
- Do some experiments with looping and usage of arrays, that can automatically add class (skins) for class selection; Use a loop and add 'AddPlayerClass(...);' code in it.
- Make your OnPlayerRequestClass code work according to your system; If your max classes are 5, put all the class selection code beneath it, for example:
PHP код:
OnPlayerRequestClass(playerid, classid)
{
if(0 <= classid <= maximum_number_of_classes_in_class_selection)
return 1;
}