Raised This Month: $ Target: $400
 0% 

[REQUEST] Friendlyfire checker


Post New Thread Reply   
 
Thread Tools Display Modes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-09-2017 , 20:49   Re: [REQUEST] Friendlyfire checker
Reply With Quote #11

PHP Code:
register_cvar("mp_friendlyfire""mp_friendlyfire"

No because 1) The cvar already exists and 2) the value is an integer.
__________________

Last edited by fysiks; 10-09-2017 at 20:50.
fysiks is offline
Old 10-09-2017, 20:50
fysiks
This message has been deleted by fysiks. Reason: second page glitch
WhiteFang1319
Senior Member
Join Date: Jan 2017
Old 10-10-2017 , 08:14   Re: [REQUEST] Friendlyfire checker
Reply With Quote #12

Quote:
Originally Posted by fysiks View Post
PHP Code:
register_cvar("mp_friendlyfire""mp_friendlyfire"

No because 1) The cvar already exists and 2) the value is an integer.
Thanks.

Quote:
Originally Posted by wlmraziel View Post
Hi, there are a plugin for check if in the server the mp_friendlyfire is on? In this case the plugin can disable the mp_friendlyfire.
Solved.
You can use this:
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Anti-FriendlyFire"
#define VERSION "1.1"
#define AUTHOR "WhiteFang"

new gFriendlyfire

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_logevent("new_round"2"1=Round_Start")
    
gFriendlyfire get_cvar_pointer("mp_friendlyfire")
    

}
public 
new_round()
{
    
//Setting Friendlyfire 0 on new round
    
set_pcvar_num(gFriendlyfire,0)

WhiteFang1319 is offline
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 10:07.


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