-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RemoveClass and include file #17
Comments
Classes are static, even y_classes' classes are static. Once created they can't be removed. y_classes simulates classes on top of the static classes. This can all be done in your script as well, I'm sure this won't be added. |
Resetting classes to 0 would be really simple, just modify If you want to delete individual ones, all you need to do is splice |
Yep just remove individual ones..Or maybe add another functions like DestroyAllClasses() ? |
It's possible but only would affect newly connected players |
I've did what I can to help you: 7c86cb3 |
How about a ResetClasses? Then we could manage local ones and reset the real ones when we want to do something. Like, I could have an array of classes in my server. I initially add them using AddPlayerClass. Then if I want to remove a few I reset them and add the ones I have left. |
all classes has been reseted. you can add new with AddPlayerClass |
I suggest adding Remove/DestroyClass(classid) as it may be very useful. YSI y_classes have these but i guess i wouldnt hurt to have one more simple function...
And add include file with all functions and callbacks to releases (R14-3 and R15 did not have include, and i even wanted to suggest SetPlayerGravity function but checked source and noticed its already there)
Also suggesting adding examples for SendRPC and SendData and some more complex functions/callbacks in first post at samp forums.
The text was updated successfully, but these errors were encountered: