Raised This Month: $51 Target: $400
 12% 

Plugin: amx_fuckyou


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tnsk8er27
Senior Member
Join Date: Mar 2004
Location: richfield MN
Old 03-17-2004 , 01:06   Plugin: amx_fuckyou
Reply With Quote #1

Code:
//////////////////////////////////////////////////////// // The Fuck You Plugin      created by ToXiC          // //                                                    // //                 version 2.0                        // //                                                    // //                    cmd:                            // //                                                    // //  amx_fuckyou <name>      ex. "amx_fuckyou toxic"   // //                                                    // //           inspired by bigballer ^_^                // //                                                    // //////////////////////////////////////////////////////// #include <amxmodx> #include <amxmisc> public plugin_init(){     register_plugin("fuckyou", "0.1", "Toxic")     register_concmd("amx_fuckyou", "admin_fuckyou",ADMIN_KICK,"<authid, nick or #userid>")      return PLUGIN_CONTINUE } public admin_fuckyou(id, level, cid){     if (!cmd_access(id,level,cid,1))         return PLUGIN_HANDLED     new arg[32]     read_argv(1,arg,31)     new player = cmd_target(id,arg,0)     if (!player)         return PLUGIN_HANDLED     client_print(player,print_center,"        _                        _^n      |{_}|                    |{_}|^n      |   |                    |   |^n      |===|                    |===|^n     _|   |_                  _|   |_^n   /==|   |==\_              _/==|   |==\^n  /|  |   |  | \          / |  |   |  |\^n / |  |   |  |  |        |  |  |   |  | \^n \              |        |              /^n  \            /          \            /")     new name[32],name2[32]     get_user_name(id,name,31)     get_user_name(player,name2,31)     client_print(0,print_chat,"[AMXX] ^"%s^"has just been flicked off by the ^"%s^"!",name2,name)     return PLUGIN_HANDLED }

i dono if this works yet havent had time to test it but just tell me if you think everything looks alright, thx

also post comments on versions to come =P
__________________
Toxic
tnsk8er27 is offline
Send a message via AIM to tnsk8er27
BigBaller
Veteran Member
Join Date: Mar 2004
Location: Everett, WA
Old 03-17-2004 , 01:50  
Reply With Quote #2

haha I see you took my idea and ran with it.
__________________

BigBaller is offline
MagicShot
Senior Member
Join Date: Mar 2004
Location: MN
Old 03-17-2004 , 02:12   lol
Reply With Quote #3

Quote:
Originally Posted by BigBaller
haha I see you took my idea and ran with it.
Its a good First plugin experence.. hehe
__________________
|v|agic$hot
.
Without a Sound
MagicShot is offline
Send a message via MSN to MagicShot Send a message via Yahoo to MagicShot
tnsk8er27
Senior Member
Join Date: Mar 2004
Location: richfield MN
Old 03-17-2004 , 16:06  
Reply With Quote #4

i havent tested it yet and when i compiled it it said warning loose indentation.... i dono where tho

would it work?
__________________
Toxic
tnsk8er27 is offline
Send a message via AIM to tnsk8er27
tnsk8er27
Senior Member
Join Date: Mar 2004
Location: richfield MN
Old 03-17-2004 , 16:23  
Reply With Quote #5

i was wonderin do you guys think i should post this in the plugin section just to test it.



one other thing
Code:
    new arg[32]     read_argv(1,arg,31)

do you think i need this for my plugin???
-i thought i did but i dont even know what it does lol
__________________
Toxic
tnsk8er27 is offline
Send a message via AIM to tnsk8er27
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 03-17-2004 , 16:26  
Reply With Quote #6

it reads the first arg after the cmd
Freecode is offline
tnsk8er27
Senior Member
Join Date: Mar 2004
Location: richfield MN
Old 03-17-2004 , 16:29  
Reply With Quote #7

yeah but should i take it out of my plugin or do i need it?
__________________
Toxic
tnsk8er27 is offline
Send a message via AIM to tnsk8er27
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 03-17-2004 , 16:45  
Reply With Quote #8

ex.
amx_fuckyou Richard
read_argv(1,arg,32) would store Richard in arg
Freecode is offline
ThorW634
Member
Join Date: Aug 2004
Location: Zeal
Old 03-17-2004 , 16:48  
Reply With Quote #9

very different and interesting..I like variety.
ThorW634 is offline
Send a message via AIM to ThorW634
tnsk8er27
Senior Member
Join Date: Mar 2004
Location: richfield MN
Old 03-17-2004 , 18:55  
Reply With Quote #10

Quote:
ex.
amx_fuckyou Richard
read_argv(1,arg,32) would store Richard in arg
but what command do i use to get "richard" agian????



Quote:
very different and interesting..I like variety.
thanks...its my first plugin!!! but do ya think i should post it in the plugins section?
__________________
Toxic
tnsk8er27 is offline
Send a message via AIM to tnsk8er27
Reply



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 15:49.


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