Raised This Month: $ Target: $400
 0% 

can anyone help? (again)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
silversinner
Member
Join Date: Feb 2006
Location: England
Old 03-02-2006 , 11:33   can anyone help? (again)
Reply With Quote #1

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:
Code:
set_task(1.0,"ip")
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
__________________
My website
(under contruction)
silversinner is offline
Send a message via AIM to silversinner Send a message via MSN to silversinner Send a message via Yahoo to silversinner
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode