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

Weapon Cleanup Every Round CSGO


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ericsp
Junior Member
Join Date: Apr 2018
Old 04-11-2018 , 16:16   Weapon Cleanup Every Round CSGO
Reply With Quote #1

Hello everyone!

I'm literally going crazy in here because I've been searching for a plugin for almost a week now (not necessarily a plugin, a console command would do too)

I own a server where at every round start players aren't supposed to have weapons in their hands

What I tried:

Code:
mp_t_default_primary ""
mp_t_default_secondary ""
mp_ct_default_primary ""
mp_ct_default_secondary ""
in my config file (gamemode_casual_server.cfg). The cfg works, but not the commands
I thought these were supposed to get players rid of the weapons every round start, but seems like they're pretty useless

Next, I tried to search Google for info.. Guess what

https://www.reddit.com/r/hammer/comm...ers_equipment/ This is the only link that gets close to reality, and I understand exactly nothing from the link the guy posted


So I'm asking you guys .. Please Make a plugin that cleans ALL players' weapons every round. I'd do it myself, but I have no idea how to script, I only know how to edit basic things in sourcemod then recompile and claim the plugin is mine (jk jk)
ericsp is offline
Alisdair
Junior Member
Join Date: Mar 2018
Old 04-11-2018 , 16:59   Re: Weapon Cleanup Every Round CSGO
Reply With Quote #2

You can try to compile this, i haven't tried it yet so... Let me know if it does work or no, i did this on mobile so maybe I have messed something up

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

public Plugin:myinfo = {
 
name "Default weapon",
 
author "Alis",
 
description "Sets knife as default weapon",
 
version "1.0",
 
url "" 
};

public 
OnPluginStart() {
HookEvent("player_spawn"event_Spawn);
}

public 
Action:event_Spawn(Handle:event, const String:name[], bool:dontBroadcast
{
new 
client GetClientOfUserId(GetEventInt(event"userid"));
new 
knife GivePlayerItem(client,"weapon_knife");
EquipPlayerWeapon(clientknife);

Alisdair is offline
wolvez04
Senior Member
Join Date: Feb 2016
Location: Andora
Old 04-12-2018 , 03:17   Re: Weapon Cleanup Every Round CSGO
Reply With Quote #3

For minigames maps? I know there is a few plugins floating around that remove starting weapons effective for some maps that give weapon after spawn making the cvars you are using useless.
wolvez04 is offline
ericsp
Junior Member
Join Date: Apr 2018
Old 04-12-2018 , 04:28   Re: Weapon Cleanup Every Round CSGO
Reply With Quote #4

I intend to use it for deathrun maps. deathrun_ and dr_
Thanks for the plugin, I'll try it out as soon as I get home
ericsp is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 04-12-2018 , 09:09   Re: Weapon Cleanup Every Round CSGO
Reply With Quote #5

I believe you want this plugin for minigames and multigame maps and the like: https://forums.alliedmods.net/showthread.php?p=2394355

Last edited by Mitchell; 04-12-2018 at 09:10.
Mitchell is offline
ericsp
Junior Member
Join Date: Apr 2018
Old 04-12-2018 , 10:26   Re: Weapon Cleanup Every Round CSGO
Reply With Quote #6

Thank you very much!
I am ashamed of myself because I didn't properly look it up on the forums
It worked perfectly
ericsp 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 23:17.


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