Plugin Noclip & Godmode
#1
Alguno me puede ayudar a editar este plugin para que no aparezca nada en say?

Código PHP:
/*********** 

cheat - allows you to enable noclip and godmode on players

Commands: 
amx_noclip <target> - allows you to set noclip on the target client
amx_godmode <target> - allows you to set godmode on the target client
repeat the command to disable

default access is ADMIN_BAN, so basically anyone with access to amx_ban will beable to use these commands

How to install:
- Find your plugins.ini in your config folder (addons/amxmodx/configs/plugins.ini) open it in notepad and type cheat.amxx
- Place the cheat.amxx in your plugins folder (addons/amxmodx/plugins/)

Requires the fun module
- Find your modules.ini (addons/amxmodx/configs/modules.ini) open it in notepad and
- Uncomment (remove the ; from infront of) the fun_amxx.dll or the fun_amxx_i386.so if you are using linux

watch <:D~?

***********/

#include <amxmodx>
#include <amxmisc>
#include <fun>

public plugin_init() {
    
register_plugin("amx_cheat","1.0","watch")
    
register_concmd("amx_godmode","amx_godmode",ADMIN_BAN,"<target>")
    
register_concmd("amx_noclip","amx_noclip",ADMIN_BAN,"<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)) {
        
set_user_noclip(player,1)
        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)
        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


-- Desde ya muchas gracias --
Responder
#2
(03/08/2019, 06:53 PM)zozecayal escribió: Alguno me puede ayudar a editar este plugin para que no aparezca nada en say?

Código PHP:
/*********** 

cheat - allows you to enable noclip and godmode on players

Commands: 
amx_noclip <target> - allows you to set noclip on the target client
amx_godmode <target> - allows you to set godmode on the target client
repeat the command to disable

default access is ADMIN_BAN, so basically anyone with access to amx_ban will beable to use these commands

How to install:
- Find your plugins.ini in your config folder (addons/amxmodx/configs/plugins.ini) open it in notepad and type cheat.amxx
- Place the cheat.amxx in your plugins folder (addons/amxmodx/plugins/)

Requires the fun module
- Find your modules.ini (addons/amxmodx/configs/modules.ini) open it in notepad and
- Uncomment (remove the ; from infront of) the fun_amxx.dll or the fun_amxx_i386.so if you are using linux

watch <:D~?

***********/

#include <amxmodx>
#include <amxmisc>
#include <fun>

public plugin_init() {
    
register_plugin("amx_cheat","1.0","watch")
    
register_concmd("amx_godmode","amx_godmode",ADMIN_BAN,"<target>")
    
register_concmd("amx_noclip","amx_noclip",ADMIN_BAN,"<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)) {
        
set_user_noclip(player,1)
        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)
        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


-- Desde ya muchas gracias --
Prueba amigo.!!

Código PHP:
/*********** 

cheat - allows you to enable noclip and godmode on players

Commands: 
amx_noclip <target> - allows you to set noclip on the target client
amx_godmode <target> - allows you to set godmode on the target client
repeat the command to disable

default access is ADMIN_BAN, so basically anyone with access to amx_ban will beable to use these commands

How to install:
- Find your plugins.ini in your config folder (addons/amxmodx/configs/plugins.ini) open it in notepad and type cheat.amxx
- Place the cheat.amxx in your plugins folder (addons/amxmodx/plugins/)

Requires the fun module
- Find your modules.ini (addons/amxmodx/configs/modules.ini) open it in notepad and
- Uncomment (remove the ; from infront of) the fun_amxx.dll or the fun_amxx_i386.so if you are using linux

watch <:D~?

***********/

#include <amxmodx>
#include <amxmisc>
#include <fun>

public plugin_init() {
    
register_plugin("amx_cheat","1.0","watch")
    
register_concmd("amx_godmode","amx_godmode",ADMIN_BAN,"<target>")
    
register_concmd("amx_noclip","amx_noclip",ADMIN_BAN,"<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)) {
        
set_user_noclip(player,1)
        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)
        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

___________________________________________________________________
Aprendiendo Scripting y Mapper Mario
SI NO VAS AYUDAR, POR FAVOR NO COMENTARLovepanda
Responder
#3
Gracias bro. Funciono de 10
Responder
#4
(05/08/2019, 10:22 AM)DavidLG escribió: Prueba amigo.!!

Código PHP:
/*********** 

cheat - allows you to enable noclip and godmode on players

Commands: 
amx_noclip <target> - allows you to set noclip on the target client
amx_godmode <target> - allows you to set godmode on the target client
repeat the command to disable

default access is ADMIN_BAN, so basically anyone with access to amx_ban will beable to use these commands

How to install:
- Find your plugins.ini in your config folder (addons/amxmodx/configs/plugins.ini) open it in notepad and type cheat.amxx
- Place the cheat.amxx in your plugins folder (addons/amxmodx/plugins/)

Requires the fun module
- Find your modules.ini (addons/amxmodx/configs/modules.ini) open it in notepad and
- Uncomment (remove the ; from infront of) the fun_amxx.dll or the fun_amxx_i386.so if you are using linux

watch <:D~?

***********/

#include <amxmodx>
#include <amxmisc>
#include <fun>

public plugin_init() {
    
register_plugin("amx_cheat","1.0","watch")
    
register_concmd("amx_godmode","amx_godmode",ADMIN_BAN,"<target>")
    
register_concmd("amx_noclip","amx_noclip",ADMIN_BAN,"<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)) {
        
set_user_noclip(player,1)
        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)
        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

___________________________________________________________________
Aprendiendo Scripting y Mapper Mario

Saca el switch por lo menos.
Mis Aportes:

[ TTT ] Item: Target Gun

[ TTT ] Item: Skeleton Gun (New)
[ TTT ] Item: Pipe Bomb
[ TTT ] Item: Inverse Golden
[Imagen: 76561198074954930.png] [Imagen: venezuela.gif]
Pregúntate si lo que estás haciendo hoy te acerca a el lugar en el que quieres estar mañana. Corazón
Responder
#5
(07/08/2019, 03:17 AM)zozecayal escribió: Gracias bro. Funciono de 10
De nada amigo, aqui estamos para ayudar y colaborar en lo que se puede Whatever

Edita el titulo y pon [SOLUCIONADO]

________________________________________________________
Aprendiendo Scripting y Mapper Mario
SI NO VAS AYUDAR, POR FAVOR NO COMENTARLovepanda
Responder
#6
se puede hacer este plugin pero para todos los que entren al sv ponerlo por default en teoria es para un kz aveces uno pega un salto largo y aveces si tiene poca vida muere si estuviera en god mode todos por default no les pasaria.
Responder
#7
(07/11/2019, 12:12 AM)raibon escribió: se puede hacer este plugin pero para todos los que entren al sv ponerlo por default en teoria es para un kz aveces uno pega un salto largo y aveces si tiene poca vida muere si estuviera en god mode todos por default no les pasaria.

Código PHP:
#include <amxmodx>
#include <fun>
#include <hamsandwich>

public plugin_init()
{
    
register_plugin("Kz Godmode""1.0""me creo anonymous")
    
    new 
str[4// "kz_" + EOS
    
get_mapname(strcharsmax(str))
    
    if(!
equali(str"kz_"))
    {
        
pause("a")
        return;
    }
    
    
RegisterHam(Ham_Spawn"player""OnPlayer_Spawn_Post")
}

public 
OnPlayer_Spawn_Post(iId)
{
    if(
is_user_alive(iId))
        
set_user_godmode(iIdtrue)

Responder


Salto de foro:


Usuarios navegando en este tema: 2 invitado(s)