or this one..
PHP Code:
#include < amxmodx >
#include < cstrike >
#include < fun >
#include < hamsandwich >
static const g_szBuyCmds[ ][ ] = {
"usp", "glock", "deagle", "p228", "elites", "fn57", "m3", "xm1014", "mp5", "tmp", "p90", "mac10", "ump45", "ak47",
"galil", "famas", "sg552", "m4a1", "aug", "scout", "awp", "g3sg1", "sg550", "m249", "vest", "vesthelm", "flash", "hegren",
"sgren", "defuser", "nvgs", "shield", "primammo", "secammo", "km45", "9x19mm", "nighthawk", "228compact", "12gauge",
"autoshotgun", "smg", "mp", "c90", "cv47", "defender", "clarion", "krieg552", "bullpup", "magnum", "d3au1", "krieg550",
"buyammo1", "buyammo2"
}
public plugin_init( ) {
register_plugin( "Strip Weapons", "1.0", "Zpoke" );
RegisterHam( Ham_Spawn, "player", "FwdHamSpawnPlayer_Post", 1 );
for( new i; i < sizeof g_szBuyCmds; i++ )
register_clcmd( g_szBuyCmds[ i ], "BlockBuyCmd" )
}
public BlockBuyCmd( id ) return PLUGIN_HANDLED;
public FwdHamSpawnPlayer_Post( id ) {
if( is_user_alive( id ) ) {
strip_user_weapons( id );
cs_set_user_money( id, 0 );
give_item( id, "weapon_knife" );
}
}