mám takový problém chtěl bych zakázat zbraně všem a nejde mi to zkoušel jsem pár pluginu a nejde zkusil jsem to pře restmenu.amxx dal jsem všechny zakazat a nic mohl by někdo poradit? potreboval bych to na mod schovka. zkousel sem i tento plugin
PHP Code:
#include < amxmodx >
#include < fakemeta_util >
const CS_TEAM_CT = 2
public plugin_init( )
{
register_plugin( "Block Weapons", "1.0", "Pur3" )
register_event( "ResetHUD", "ev_ResetHud", "b" )
register_forward( FM_Touch, "fw_Touch_Pre" )
}
public ev_ResetHud( id )
{
if( !is_user_alive( id ) )
return;
fm_strip_user_weapons( id )
if( get_user_team( id ) == CS_TEAM_CT )
fm_give_item( id, "weapon_knife" )
}
public fw_Touch_Pre( iEnt, id )
{
if( !is_user_connected( id ) || !is_user_alive( id ) )
return FMRES_IGNORED;
new g_szClassname[ 32 ]
pev( iEnt, pev_classname, g_szClassname, 31 )
if( equali( g_szClassname, "weaponbox" ) || equali( g_szClassname, "armoury_entity" ) )
return FMRES_SUPERCEDE;
return FMRES_IGNORED;
}
ale vzdy kdyz se pripojim dam vibrat team tak me to kickne a napise toto Cs^DjOles is joining the Terrorist force
Cs^DjOles overflowed
Reliable channel overflowed
nevite mi poradit pls ?