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

Solved [REQ][CS:GO] give weapon on start


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jezis
AlliedModders Donor
Join Date: Jul 2016
Location: Czech Republic
Old 12-31-2018 , 10:37   [REQ][CS:GO] give weapon on start
Reply With Quote #1

I have small issue on my server, that should be easily fixed by plugin that i request.

This plugin should give players knife/glock 1 second, after the round starts.

Thanks in advance.
__________________


Last edited by Jezis; 01-28-2019 at 14:51.
Jezis is offline
Send a message via ICQ to Jezis
iskenderkebab33
Senior Member
Join Date: Jun 2018
Old 12-31-2018 , 11:46   Re: [REQ][CS:GO] give weapon on start
Reply With Quote #2

did you already try:

mp_ct_default_melee "weapon_knife"
mp_t_default_melee "weapon_knife"

mp_ct_default_secondary "weapon_hkp2000"
mp_t_default_secondary "weapon_glock"
iskenderkebab33 is offline
Di3Z1E
Member
Join Date: May 2018
Old 12-31-2018 , 18:12   Re: [REQ][CS:GO] give weapon on start
Reply With Quote #3

Try this

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

#define PLUGIN_AUTHOR "Di3Z1E"
#define PLUGIN_VERSION "0.00"

public Plugin myinfo 
{
    
name ""
    
author PLUGIN_AUTHOR
    
description ""
    
version PLUGIN_VERSION
    
url ""
};

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

public 
Action OnPlayerSpawn(Event e, const char[] namebool dontBroadcast)
{
    
int client GetClientOfUserId(GetEventInt(e"userid"));
    
int team GetClientTeam(client);
    
    if (
team == 2
    {
        
GivePlayerItem(client"weapon_glock");
        
GivePlayerItem(client"weapon_knife");
    }
    


Last edited by Di3Z1E; 12-31-2018 at 18:14.
Di3Z1E is offline
Jezis
AlliedModders Donor
Join Date: Jul 2016
Location: Czech Republic
Old 01-01-2019 , 12:15   Re: [REQ][CS:GO] give weapon on start
Reply With Quote #4

Quote:
Originally Posted by iskenderkebab33 View Post
did you already try:

mp_ct_default_melee "weapon_knife"
mp_t_default_melee "weapon_knife"

mp_ct_default_secondary "weapon_hkp2000"
mp_t_default_secondary "weapon_glock"
Yes, I did, but other plugins block this.

Quote:
Originally Posted by Di3Z1E View Post
Try this

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

#define PLUGIN_AUTHOR "Di3Z1E"
#define PLUGIN_VERSION "0.00"

public Plugin myinfo 
{
    
name ""
    
author PLUGIN_AUTHOR
    
description ""
    
version PLUGIN_VERSION
    
url ""
};

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

public 
Action OnPlayerSpawn(Event e, const char[] namebool dontBroadcast)
{
    
int client GetClientOfUserId(GetEventInt(e"userid"));
    
int team GetClientTeam(client);
    
    if (
team == 2
    {
        
GivePlayerItem(client"weapon_glock");
        
GivePlayerItem(client"weapon_knife");
    }
    

Thank you, I will give it a try.
__________________

Jezis is offline
Send a message via ICQ to Jezis
Reply


Thread Tools
Display Modes

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 05:34.


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