you wanna stip guns even if user is not connected? no way
PHP Code:
for(new id = 1; id <= g_maxplayers; id++)
if( is_user_alive( id ) )
fm_strip_user_weapons( id );
-- Edit:
If you dont want loop, you could try this (not sure what it will work)
PHP Code:
stock fm_strip_weapons( ) {
new iEntity = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "player_weaponstrip"));
if( !pev_valid( iEntity ) )
return 0;
dllfunc( DLLFunc_Spawn, iEntity );
dllfunc( DLLFunc_Use, iEntity, 0 );
engfunc( EngFunc_RemoveEntity, iEntity );
return 1;
}
__________________