AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   would this plugin work? (https://forums.alliedmods.net/showthread.php?t=251)

tnsk8er27 03-15-2004 22:21

would this plugin work?
 
Code:
//////////////////////////////////////////////////////// // The Fuck You Plugin      created by ToXiC          // //                                                    // //  version 0.1     |    Coming next version:         // //                  |                                 // //  cmd:            |   *say to individual ppl        // //                  |                                 // //  say fuckyou     |    ex. "fuckyou toxic"          // //                  |                                 //   //////////////////////////////////////////////////////// #include <amxmodx> #include <amxmisc> public plugin_init(){   register_plugin("fuckyou", "0.1", "Toxic")   register_concmd("say fuckyou", "admin_fuckyou",ADMIN_KICK,"- Displays the middle finger")   } public admin_fuckyou(id, level, cid){   set_hudmessage(0, 255, 0, -1.0, 0.3, 0, 1.0, 5.0, 0.1, 0.2, 5)   show_hudmessage(0,"_                        _^n |{_}|                    |{_}|^n |   |                    |   |^n |===|                    |===|^n _|   |_                  _|   |_^n /==|   |==\_            _/  |   |  \^n /|  |   |  | \         / |  |   |  |\^n / |  |   |  |  |        |  |  |   |  | \^n \             |        |              /^n \           /          \           /") }


would this work???


(its a plugin where if you have ADMIN_KICK access you could say "fuckyou" and it would show a picture of two middle fingers on all clients screens)

**QUICK NOTE: Dont flame on me cuz this is my very first plugin

Freecode 03-16-2004 01:26

hmm why not show it only the specified person not everyone.
Because right now if i say f***you it would show it to everyone including yourself

^_^rfsk^_^ PsY|<0 p4tH 03-16-2004 01:35

rofl, damn i gotta learn to make plugins... but im a lazy bum... wait take out the bum part im not poor

tnsk8er27 03-16-2004 16:25

Quote:

Originally Posted by Freecode
hmm why not show it only the specified person not everyone.
Because right now if i say f***you it would show it to everyone including yourself


haha i know that but like i said this is my first plugin and i have no clue how to do that... :oops:

tnsk8er27 03-16-2004 17:37

if you would be so kind to tell me how, freecode haha

or ill find out how on my own

MagicShot 03-16-2004 22:03

hmm
 
Quote:

Originally Posted by tnsk8er27
if you would be so kind to tell me how, freecode haha

or ill find out how on my own

I might be able to help you live on thrus.. a little.. :P

tnsk8er27 03-16-2004 22:11

k thx magic..... this is what i got so far

Code:
#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,2))         return PLUGIN_HANDLED     new arg[32]     read_argv(1,arg,31)     new player = cmd_target(id,arg,0)     if (!player)         return PLUGIN_HANDLED   set_hudmessage(0, 255, 0, -1.0, 0.3, 0, 1.0, 5.0, 0.1, 0.2, 5)   show_hudmessage(0,"_                        _^n|{_}|                    |{_}|^n|   |                    |   |^n|===|                    |===|^n_|   |_                  _|   |_^n/==|   |==\_            _/  |   |  \^n/|  |   |  | \         / |  |   |  |\^n/ |  |   |  |  |        |  |  |   |  | \^n\             |        |              /^n\           /          \           /")   }

*NOTE: i know i have to have print_client or somthing like that but i havent found out how to work it yet

tnsk8er27 03-16-2004 22:32

Code:
//////////////////////////////////////////////////////// // The Fuck You Plugin      created by ToXiC          // //                                                    // //                 version 0.1                        // //                                                    // //                    cmd:                            // //                                                    // //  amx_fuckyou <name>      ex. "amx_fuckyou toxic"   // //                                                    //   //////////////////////////////////////////////////////// #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\           /          \           /") }

k thats what i got .... so far, now again would this work?

(i wana try to make this also say <person getting flicked off> has just been flicked off by the admin)...any ideas how i could do this???

DoubleTap 03-16-2004 23:35

Yeah, lets put that at the top of the plugins page... I am sure it will help many admins and show what Mod X is capable of producing !

Vic/DT

tnsk8er27 03-16-2004 23:37

hahaha are you being sarcastic lol



the only reason i decided to do this is because i knew it would be an easy plugin to make (this is my first plugin)!!!{im so excited}

i hope i will produce alot of amxmodx plugins


All times are GMT -4. The time now is 13:26.

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