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

Request a Automatic Server /FF response.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dunno
Member
Join Date: Apr 2005
Old 04-25-2005 , 17:36   Request a Automatic Server /FF response.
Reply With Quote #1

I had a plugin that did this on AdminMod.. I'm pretty sure it is here, but I have been unable to find it..


When a client says /ff the server responds with a CSAY Firendly Fire is Always on!

Any Help would be Appreciated!!

BTW Come Check out our New DOD Server!! Thanks to you guys it rocks!!

Server IP: 67.18.44.227
__________________
Dunno is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-25-2005 , 19:17  
Reply With Quote #2

AdminMod, yuck..

Something as simple as this should work:
Code:
#include <amxmodx> public plugin_init() {     register_plugin("Say FF","0.1","v3x")     register_clcmd("say /ff","Say_FF") } public Say_FF() {     new ff = get_cvar_num("mp_friendlyfire")     switch(ff) {         case 0: client_print(0,print_chat,"Friendly fire: OFF")         case 1: client_print(0,print_chat,"Friendly fire: ON")     }     return PLUGIN_HANDLED }
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Dunno
Member
Join Date: Apr 2005
Old 04-25-2005 , 22:39  
Reply With Quote #3

Simplicity RuLeZ!!

Compiling and trying tonight..


Thanks v3x!!
__________________
Dunno is offline
Dunno
Member
Join Date: Apr 2005
Old 04-26-2005 , 08:39  
Reply With Quote #4

Works great..

I would like for these says to cause a response also. And what about a green CSay message informing in adition to a say message..

ff & FF & friendly fire

Not just /ff

I tried adding it, but it won't compile.. I just don't know enough..

Thanks in Advance
__________________
Dunno is offline
Proach
Veteran Member
Join Date: Jan 2005
Location: The Netherlands
Old 04-26-2005 , 11:40  
Reply With Quote #5

not sure cause I suck @ coding but maybe
Code:
#include <amxmodx> public plugin_init() {     register_plugin("Say FF","0.1","v3x")     register_clcmd("say /ff","Say_FF",)     register_clcmd("say friendlyfire","Say_FF")     register_clcmd(say "ff"","Say_FF") } public Say_FF() {     new ff = get_cvar_num("mp_friendlyfire")     switch(ff) {         case 0: client_print(0,print_chat,"@rFriendly fire: OFF")         case 1: client_print(0,print_chat,"@rFriendly fire: ON")     }     return PLUGIN_HANDLED }

@r is for red but you can change it to @b for blue etc.. not sure if this works tough
__________________

www.psmod.net (the better psychostats)
PAOL
Proach is offline
Send a message via ICQ to Proach
Dunno
Member
Join Date: Apr 2005
Old 04-26-2005 , 19:14  
Reply With Quote #6

Works Great.. Except it still doesn't CSAY. Also the "@r" just adds that to the Beginning of the statement @rFriendly Fire is: ON..

I edited it out. and Recomplied.. Any Ideas on the CSAY?

Thanks..
__________________
Dunno is offline
Proach
Veteran Member
Join Date: Jan 2005
Location: The Netherlands
Old 04-27-2005 , 03:15  
Reply With Quote #7

hgmm that is weird.. I always thought that @r would make it different colours.. well prolly not.. I never scripted before in my whole life so you ll need to ask v3x for this
__________________

www.psmod.net (the better psychostats)
PAOL
Proach is offline
Send a message via ICQ to Proach
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 04-27-2005 , 05:15  
Reply With Quote #8

okay, this will show a green hudmessage when FF is off
and a red hudmessage when FF is ON (additionally to the
chatmessage).
to prevent spamming for all players, the messages are only
shown to the person that typed /ff, ff, /friendlyfire or friendlyfire.

here you go:
Code:
#include <amxmodx> public plugin_init() {     register_plugin("Say FF","0.1","v3x")     register_clcmd("say /ff","Say_FF")     register_clcmd("say ff","Say_FF")     register_clcmd("say /friendlyfire","Say_FF")     register_clcmd("say friendlyfire","Say_FF") } public Say_FF(id) {     new ff = get_cvar_num("mp_friendlyfire")     switch(ff){         case 0: {             set_hudmessage(0, 255, 0, -1.0, -1.0, 0, 6.0, 5.0, 0.1, 0.2, 4)             show_hudmessage(id,"Friendly Fire: OFF")             client_print(id,print_chat,"Friendly Fire: OFF")         }         case 1: {             set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 6.0, 5.0, 0.1, 0.2, 4)             show_hudmessage(id,"Friendly Fire: ON")             client_print(id,print_chat,"Friendly Fire: ON")         }     }     return PLUGIN_HANDLED }
FeuerSturm is offline
Dunno
Member
Join Date: Apr 2005
Old 04-27-2005 , 05:46  
Reply With Quote #9

Thanks as Always..

Thanks to all of you I'm about to get the server wrapped up...

It's performing Great..
Except for the NinJA Rope Plugin that I've given Up on..
__________________
Dunno is offline
Proach
Veteran Member
Join Date: Jan 2005
Location: The Netherlands
Old 04-27-2005 , 10:03  
Reply With Quote #10

thanks FireStorm Ill take a look trough the code maybe I can learn a little bit scriptin myself now
__________________

www.psmod.net (the better psychostats)
PAOL
Proach is offline
Send a message via ICQ to Proach
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 22:14.


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