Right as you know im new to scripting i only really know simple plugin (like kick plugins) and im just looking for info to store in my brain!
I've been working on a new plugin for my friend! i call it hacker abuse!
all it does is count down from 5 to 0 after 0 it starts abusing! after abuse it bans them! Now i've put in the ban cmd at the end
Code:
new ip [16] {
get_user_ip(id, ip, 15, 1)
server_cmd("kick #%d ^"You have been banned for Hacking!.^"", get_user_userid(id))
server_exec()
server_cmd("addip 5 ^"%s^"", ip)
server_print("[AMXX] HaCkEr AbUsEd & BaNnEd!")
}
(This is the code a guy told me on my other topic

cheers)
I need to know 2 things if i add:
and then the ban code at the bottom:
Code:
new ip [16] {
get_user_ip(id, ip, 15, 1)
server_cmd("kick #%d ^"You have been banned for Hacking!.^"", get_user_userid(id))
server_exec()
server_cmd("addip 5 ^"%s^"", ip)
server_print("[AMXX] HaCkEr AbUsEd & BaNnEd!")
}
Will it pick up on the fact i want it to exicute that code after so&so amount of seconds. If not how do i do it? (I've looked everywere for tutorials so this is my last resort)
My second question is: If i want to add another code. that i want it to exicute amx_uberslap would it be this: (after adding set_task(0.0,"uberslap")
Code:
public uberslap [16] {
get_user_ip(id, ip, 15, 1)
server_cmd("amx_uberslap", get_user_userid(id))
server_print("[AMXX] HaCkEr AbUsEd & BaNnEd!")
Now i know i will have to add end tags ect... but all i need is a code that will enable me to do this

i know this may seem.... weird but i have searched high and low on the net for tutorials on this paticlur subject but havnt found any!
If you could help! id really appreciate it !
silversinner
__________________