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

Detect [NO-sXe-I] plugin


Post New Thread Reply   
 
Thread Tools Display Modes
instinctpt1
Senior Member
Join Date: Dec 2016
Location: Chandigarh, India
Old 05-23-2020 , 05:13   Re: Detect [NO-sXe-I] plugin
Reply With Quote #21

You name in 1.6 must not have this tag anywhere [NO-sXe-I] are you sure about this, coz plugin is kicking the users that has this tag somewhere in their name "[NO-sXe-I]", coz according to the logic i see, SXE adds this tag to the user name if he doesnt use SXE

If i am wrong then tell me, what SXE do with players, by this i mean, whats difference between SXE enabled players and non SXE players
instinctpt1 is offline
alferd
Veteran Member
Join Date: Dec 2019
Location: Iran is Always Eternal
Old 05-23-2020 , 08:41   Re: Detect [NO-sXe-I] plugin
Reply With Quote #22

I realized

Thanks:-)
alferd is offline
sett1ng
New Member
Join Date: May 2020
Old 05-25-2020 , 01:08   Re: Detect [NO-sXe-I] plugin
Reply With Quote #23

[QUOTE=instinctpt1;2701462]
Quote:
Originally Posted by sett1ng View Post

PHP Code:
#include <amxmodx>
#include <amxmisc>

#define MAX_PLAYERS 32

new bool:g_bRestartAttempt[MAX_PLAYERS+1]
new 
bool:g_bNoSxe[MAX_PLAYERS+1]

new 
g_pcvarHpPunish

public plugin_init() {
    
register_plugin("Detect No sXe players""0.1""connorr")

    
g_pcvarHpPunish register_cvar("no_sxe_hp_punish""25")

    
register_event("TextMsg""eRestartAttempt""a""2=#Game_will_restart_in")
    
register_event("ResetHUD""eResetHUD""be")

    
register_clcmd("fullupdate""fullupdateCmd")
}

public 
fullupdateCmd() {
    return 
PLUGIN_HANDLED_MAIN
}

public 
eRestartAttempt() {
    new 
players[MAX_PLAYERS], num
    get_players
(playersnum"a")
    for (new 
inum; ++i)
        
g_bRestartAttempt[players[i]] = true
}

public 
eResetHUD(id) {
    if (
g_bRestartAttempt[id]) {
        
g_bRestartAttempt[id] = false
        
return
    }
    
event_player_spawn(id)
}
 
public 
event_player_spawn(id) {
    if(
g_bNoSxe[id])
        if(!
is_user_admin(id))
            
user_slap(idget_pcvar_num(g_pcvarHpPunish), 0)
}

public 
client_putinserver(id) {
    static 
szName[32];get_user_name(idszName31)
    static const 
szNoSxe[] = "[NO-sXe-I]"
    
g_bNoSxe[id] = containi(szNameszNoSxe) != -true false

I have added exceptions for admins, now they won't get punished

Thank you very much brother, now with this plugin edited by you, my Steam administrators will not get the poster [NO-sXe-]?
sett1ng is offline
instinctpt1
Senior Member
Join Date: Dec 2016
Location: Chandigarh, India
Old 05-25-2020 , 02:00   Re: Detect [NO-sXe-I] plugin
Reply With Quote #24

Quote:
Originally Posted by sett1ng View Post
Thank you very much brother, now with this plugin edited by you, my Steam administrators will not get the poster [NO-sXe-]?
I just added exception for admins, not for steam admins, coz i believe all players on your servers are from steam, no if admin will enter this will not check SXE for an admin ( regardless of they are steam or nonsteam )
instinctpt1 is offline
sett1ng
New Member
Join Date: May 2020
Old 05-26-2020 , 05:53   Re: Detect [NO-sXe-I] plugin
Reply With Quote #25

And what do I do now to put it on my server?
sett1ng is offline
instinctpt1
Senior Member
Join Date: Dec 2016
Location: Chandigarh, India
Old 05-26-2020 , 07:42   Re: Detect [NO-sXe-I] plugin
Reply With Quote #26

Go here https://www.amxmodx.org/webcompiler.cgi
Write a name for this plugin and paste the source code i provided to you above and click compile and download the .amxx file from there, after that put it in plugins directory of amxmodx and edit plugins.ini in configs folder and add a line at the very end of it with name of this plugin like ...xyz.amxx
instinctpt1 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-26-2020 , 08:05   Re: Detect [NO-sXe-I] plugin
Reply With Quote #27

Quote:
Originally Posted by instinctpt1 View Post
Go here https://www.amxmodx.org/webcompiler.cgi
Write a name for this plugin and paste the source code i provided to you above and click compile and download the .amxx file from there, after that put it in plugins directory of amxmodx and edit plugins.ini in configs folder and add a line at the very end of it with name of this plugin like ...xyz.amxx
Using online compilers is never a good idea. Always compile your plugins locally.

__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Reply


Thread Tools
Display Modes

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 05:37.


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