Quote:
Originally Posted by Bugg
Lo dicho, hay alguna manera para que no salgan armas e los mapas fy?
Tipo Fy_poolday y todo eso?
Creo recordar que había algún tipo de comando.....
Saludos.
|
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include < fakemeta >
#define PLUGIN "No Armas"
#define VERSION "1.0"
#define AUTHOR "cL-2"
new const szMaps[ ][ ] =
{
"awp_map",
"aim_map"
}
new asd
public plugin_precache( )
{
static mapname[ 32 ];
get_mapname( mapname, charsmax( mapname ) );
for ( new i = 0; i < sizeof( szMaps ); i++ )
{
if ( equali( mapname, szMaps[i] ) )
{
asd = register_forward(FM_Spawn, "fw_Spawn")
}
}
}
public plugin_init( ) {
unregister_forward(FM_Spawn, asd)
}
public fw_Spawn(ent)
{
if (!pev_valid( ent )) return 1;
new classname[ 32 ]; pev( ent, pev_classname, classname, 31 )
if ( equal( classname, "armoury_entity" ) )
{
engfunc(EngFunc_RemoveEntity, ent )
return 4;
}
return 1;
}
y poner los mapas que quieras que no alla armas
PHP Code:
{
"awp_map",
"aim_map"
}