Raised This Month: $51 Target: $400
 12% 

Clear all weapons


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TrullSin
Senior Member
Join Date: Jun 2018
Old 10-07-2018 , 14:08   Clear all weapons
Reply With Quote #1

Is there any plugin that clear all dropped weapons and equipped weapons with a command?
TrullSin is offline
iskenderkebab33
Senior Member
Join Date: Jun 2018
Old 10-07-2018 , 14:20   Re: Clear all weapons
Reply With Quote #2

this?
https://forums.alliedmods.net/showpo...60&postcount=8
iskenderkebab33 is offline
LenHard
Senior Member
Join Date: Jan 2016
Old 10-09-2018 , 00:49   Re: Clear all weapons
Reply With Quote #3

PHP Code:
#include <sourcemod> 
#include <sdktools>

#pragma newdecls required
#pragma semicolon 1

public void OnPluginStart() { 
    
RegAdminCmd("sm_clear"Cmd_ClearADMFLAG_GENERIC"Clears all weapons from the map."); 


public 
Action Cmd_Clear(int clientint args

    
int iEnt MaxClients 1

    while ((
iEnt FindEntityByClassname(iEnt"weapon_*")) != -1
        
AcceptEntityInput(iEnt"Kill"); 
     
    
PrintToChat(client"You removed all the weapons."); 

__________________
LenHard is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:47.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode