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)
+--- Thread: Classes (
/showthread.php?tid=632436)
Classes -
Loinal - 14.04.2017
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
Re: Classes -
Loinal - 14.04.2017
Fixed
Re: Classes -
Loinal - 15.04.2017
bump
Re: Classes -
Loinal - 15.04.2017
Any help?
Re: Classes -
Logic_ - 15.04.2017
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;
}
Re: Classes -
Loinal - 16.04.2017
Fixed
Re: Classes -
GhostHacker9 - 16.04.2017
Quote:
Originally Posted by Logic_
- Make a dynamic array based team system. Please don't ****** for fuck sake, try making it yourself for the sake of your existence.
|
Learn the meaning of dynamic array before shitting