Help with ban script
Hey.
I have this script, that bans players for 30 minutes, when they reach 70 kills. What I need to add to it is: 1. Admin immunity (Admins with the d flag) 2. Make it log the bans with AmxBans (I thought I did this, but they aren't logged. I hope someone will help me. Code:
|
Why ban someone when they reach 70 kills that is based on a random number and tell thy overflowed?
|
Dude becareful how you act with stuff like this around here
Code:
Something like that |
Why would I have to be carefull with this ???
Btw. Thanks. |
Code:
What? That doesn't make any sense... try this: Code:
This just checks for the ADMIN_IMMUNITY flag as well as the ADMIN_BAN flag. As for logging with AmxBans, I'm not sure since I haven't used it. |
Code:
server_cmd("banid 30 #%d", get_user_userid(id))Code:
new authid[35] |
The 70 kills dont work with amx_ban
Code:
And bantime being a cvar that is how long the person is banned for |
The issue with ur ban command is there is NO reason specified.
This will give a ban in the amxban database without a reason so it will STILL not be documented properly. The 70 kills thing in my code was the ban reason given. So combined it would give something like this: Code:
new authid[32], new kills = get_user_frags(id) |
lol you forgot the small tags
|
Code:
The ^" symbols tell the compile not to end the server cmd but put 70 kills in quotes when entered by the server, also the greater/less than symbols need to go before the equals or it wont work, also 123 what games is this for? |
| All times are GMT -4. The time now is 23:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.