06.06.2014, 10:16
1) You assume there's an enum for storing player data and that it's named 'pInfo'. Assumptions suck.
2) They'll get an error for an undefined symbol named 'yellow'.
3) There's no explanations as to what skin you're setting the player to, what weapon you are giving them, what color you are setting them to, I just see meaningless numbers like 38 and 189.
4) You use 256 cells for a string when the maximum string length is only 144.
5) Try disconnecting on duty and then rejoining.
6) You can go on/off duty as many times as you like, gaining pretty much infinite ammo.
There are a lot of things wrong with this, I mentioned the easier ones to spot - since your emphasis was on "this is for beginner server owners who need a onduty cmd and instead of searching on ****** for hours here it is."
You should make sure your code is perfect before even thinking of posting a tutorial.
Cheers
2) They'll get an error for an undefined symbol named 'yellow'.
3) There's no explanations as to what skin you're setting the player to, what weapon you are giving them, what color you are setting them to, I just see meaningless numbers like 38 and 189.
4) You use 256 cells for a string when the maximum string length is only 144.
5) Try disconnecting on duty and then rejoining.
6) You can go on/off duty as many times as you like, gaining pretty much infinite ammo.
There are a lot of things wrong with this, I mentioned the easier ones to spot - since your emphasis was on "this is for beginner server owners who need a onduty cmd and instead of searching on ****** for hours here it is."
You should make sure your code is perfect before even thinking of posting a tutorial.
Cheers