Quote:
Originally Posted by iskenderkebab33
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
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[] name, bool 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.
__________________