Help with in-game admin
Does anyone know what is wrong with this code?
Code:
I know there is already a plugin like this but I'm trying to learn how to do it. |
Your using clcmd... Now everyone on your server can add and remove admins :P
|
Code:
Only people with ban access can :lol: |
Ops sorry... my eyes... :P
And show us the errors when you compile, or explain whats wrong with it...? EDIT: You forgot } at the end of the plugin... |
Code:
//// addadmin.sma |
Yes Actually, anyone could run that command, because you forgot to restrict it with:
Code:
And you forgot to register a client command to remove admins (you have the function for it).. And the following just wont work, you need to read the file contents line by line, and compare each line.. not the file name.. Code:
You have alot of errors, both syntax and logic, and you need to think it through alot more... mainly your file access commands and logic.. look at some examples from other plugins which do this... I could fix you plugin for you, but that basically means rewriting the entire thing myself, and that would spoil the fun for you.. Keep trying tho, and study!! Edit: here, I removed the syntax errors, but the logic is still wrong, and I can GUARANTEE this wont work still even tho it compiles fine.. it is logically incorrect... Code:
|
if you ever finish
If you ever get that removeadmin code to work post it!!! I know lots of people who would love you for that code including myself, since it is a pain for me to edit my users.ini with the way I have my server set up.
|
| All times are GMT -4. The time now is 14:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.