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

Noclip Edit


Post New Thread Reply   
 
Thread Tools Display Modes
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 03-10-2024 , 13:23   Re: Noclip Edit
Reply With Quote #11

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

new Float:g_fMaxSpeed[33];

public 
plugin_init() {
    
register_plugin("amx_cheat","1.0","watch")
    
register_concmd("amx_godmode","amx_godmode",ADMIN_RCON,"<target>")
    
register_concmd("amx_noclip","amx_noclip",ADMIN_RCON,"<target>")
}

public 
amx_godmode(id,level,cid) {
    if (!
cmd_access(id,level,cid,2))
        return 
PLUGIN_HANDLED
    
    
new arg[32], admin_name[32], target_name[32]
    
read_argv(1,arg,31)

    new 
player cmd_target(id,arg,14)
    if (!
player) return PLUGIN_HANDLED

    get_user_name
(id,admin_name,31)
    
get_user_name(player,target_name,31)

    if (!
get_user_godmode(player)) {
        
set_user_godmode(player,1)
        switch(
get_cvar_num("amx_show_activity")) {
            case 
2:    client_print(0,print_chat,"ADMIN %s: enabled godmode on %s",admin_name,target_name)
            case 
1:    client_print(0,print_chat,"ADMIN: enabled godmode on %s",target_name)
        }
    } else {
        
set_user_godmode(player)
        switch(
get_cvar_num("amx_show_activity")) {
            case 
2:    client_print(0,print_chat,"ADMIN %s: disabled godmode on %s",admin_name,target_name)
            case 
1:    client_print(0,print_chat,"ADMIN: disabled godmode on %s",target_name)
        }
    }
    return 
PLUGIN_HANDLED
}

public 
amx_noclip(id,level,cid) {
    if (!
cmd_access(id,level,cid,2))
        return 
PLUGIN_HANDLED
    
    
new arg[32], admin_name[32], target_name[32]
    
read_argv(1,arg,31)

    new 
player cmd_target(id,arg,14)
    if (!
player) return PLUGIN_HANDLED

    get_user_name
(id,admin_name,31)
    
get_user_name(player,target_name,31)

    if (!
get_user_noclip(player)) {
        
pev(playerpev_maxspeedg_fMaxSpeed[player])
        
set_user_noclip(player,1)
        
set_pev(playerpev_maxspeed2000.0)
        switch(
get_cvar_num("amx_show_activity")) {
            case 
2:    client_print(0,print_chat,"ADMIN %s: enabled noclip on %s",admin_name,target_name)
            case 
1:    client_print(0,print_chat,"ADMIN: enabled noclip on %s",target_name)
        }
    } else {
        
set_user_noclip(player)
        
set_pev(playerpev_maxspeedg_fMaxSpeed[player])
        switch(
get_cvar_num("amx_show_activity")) {
            case 
2:    client_print(0,print_chat,"ADMIN %s: disabled noclip on %s",admin_name,target_name)
            case 
1:    client_print(0,print_chat,"ADMIN: disabled noclip on %s",target_name)
        }
    }
    return 
PLUGIN_HANDLED

__________________

Last edited by georgik57; 03-10-2024 at 13:24.
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
tedaimlocks
Member
Join Date: Jan 2024
Old 03-10-2024 , 13:27   Re: Noclip Edit
Reply With Quote #12

Doesnt work, i still cant move when sv_maxspeed = 0
tedaimlocks is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 03-10-2024 , 14:31   Re: Noclip Edit
Reply With Quote #13

Why would you set it to 0?
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
tedaimlocks
Member
Join Date: Jan 2024
Old 03-11-2024 , 05:22   Re: Noclip Edit
Reply With Quote #14

For HNS events. I want to not let them move, i also said in the first post that i want to move when its 0
tedaimlocks is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 03-11-2024 , 06:34   Re: Noclip Edit
Reply With Quote #15

You can set freeze flag on each player instead of setting that cvar to 0(like in freeze time).
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
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 18:23.


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