Raised This Month: $32 Target: $400
 8% 

AMXMODX FriendlyFire


Post New Thread Reply   
 
Thread Tools Display Modes
TooL
Senior Member
Join Date: May 2004
Location: NC
Old 06-01-2004 , 13:02  
Reply With Quote #11

Does strtonum also need to be changed to str_to_num... or does that really matter ?
__________________
TooL is offline
Send a message via ICQ to TooL Send a message via AIM to TooL Send a message via MSN to TooL Send a message via Yahoo to TooL
[Ohh.Right]RuNuEn
New Member
Join Date: Jun 2004
Location: USA
Old 06-01-2004 , 13:07  
Reply With Quote #12

It doesn't really matter. The server recognizes as is or your way.
__________________
CS 1.6: 64.239.60.15:27016
[Ohh.Right]RuNuEn is offline
Send a message via AIM to [Ohh.Right]RuNuEn Send a message via MSN to [Ohh.Right]RuNuEn
BigBaller
Veteran Member
Join Date: Mar 2004
Location: Everett, WA
Old 06-01-2004 , 13:11  
Reply With Quote #13

Quote:
Originally Posted by TooL
Does strtonum also need to be changed to str_to_num... or does that really matter ?
Yes it matters.

You should also read how to post a plugin on this forum

change the #include <amxmod> to #include <amxmodx> and make the strtonum changes.

This is AMXX not AMX and therefore you should be posting AMXX plugins under AMXX plugin rules and coding.

This would be the proper AMXX coding if posted on these forums

Code:
/* * * AMX_FF *  by JustinHoMi * */ #include <amxmodx> public admin_ff(id,level){     if (!(get_user_flags(id)&level)){         console_print(id,"[AMXX] You have no access to that command.")         return PLUGIN_HANDLED     }     if (read_argc() < 2){             new ff_cvar = get_cvar_num("mp_friendlyfire")             console_print(id,"[AMXX] ^"mp_friendlyfire^" is ^"%i^"",ff_cvar)             return PLUGIN_HANDLED     }     new ff_s[2]     read_argv(1,ff_s,2)     new ff = str_to_num(ff_s)     if(ff == 1) {         server_cmd("mp_friendlyfire 1")         console_print(id,"[AMXX] Friendly fire is now on")     }     else if(ff == 0) {         server_cmd("mp_friendlyfire 0")         console_print(id,"[AMXX] Friendly fire is now off")     }     return PLUGIN_HANDLED } public check_ff(id) {     new ff = get_cvar_num("mp_friendlyfire")     if(ff == 1)         client_print(id,print_chat,"[AMXX] Friendly fire is on")     else if(ff == 0)         client_print(id,print_chat,"[AMXX] Friendly fire is off")     return PLUGIN_HANDLED } public plugin_init(){     register_plugin("Admin FF","0.21","JustinHoMi")     register_concmd("amx_ff","admin_ff",ADMIN_CVAR,"< 0/1 >")     register_clcmd("say /ff","check_ff")     register_clcmd("say_team /ff","check_ff")     return PLUGIN_CONTINUE }
__________________

BigBaller is offline
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 06-01-2004 , 13:15  
Reply With Quote #14

seriously bro me and baller posted two thread they both need to be read. you change all the natives to what they are supposed to be and change the includes to amxx standards.
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
[nFb]GraveKeeper
Senior Member
Join Date: Mar 2004
Location: Connecticut, U.S.A.
Old 06-01-2004 , 14:52  
Reply With Quote #15

This has already been ported and approved.

http://forums.alliedmods.net/showthread.php?t=949
[nFb]GraveKeeper is offline
Send a message via AIM to [nFb]GraveKeeper
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 02:07.


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