Quote:
Originally Posted by whtevrwt
Code:
] find mp_ct_default
"mp_ct_default_grenades" = "" client replicated - The default grenades that the CTs will spawn with. To give multiple grenades, s
"mp_ct_default_melee" = "weapon_knife" client replicated - The default melee weapon that the CTs will spawn with. Even if this is blank, a
"mp_ct_default_primary" = "" client replicated - The default primary (rifle) weapon that the CTs will spawn with
"mp_ct_default_secondary" = "weapon_hkp2000" client replicated - The default secondary (pistol) weapon that the CTs will spawn with
] find mp_t_default
"mp_t_default_grenades" = "" client replicated - The default grenades that the Ts will spawn with. To give multiple grenades, se
"mp_t_default_melee" = "weapon_knife" client replicated - The default melee weapon that the Ts will spawn with
"mp_t_default_primary" = "" client replicated - The default primary (rifle) weapon that the Ts will spawn with
"mp_t_default_secondary" = "weapon_glock" client replicated - The default secondary (pistol) weapon that the Ts will spawn with
|
He ask for the weapons to be removed every round, that cvars are to change start weapons only.
PHP Code:
#include <sourcemod>
#include <sdktools>
public OnPluginStart()
{
HookEvent("player_spawn", Event_PlayerSpawn)
}
public Action:Event_PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{
new client = GetClientOfUserId(GetEventInt(event, "userid"))
if(IsClientInGame(client) && IsPlayerAlive(client))
{
for(new i = 0; i < 4; i++)
{
new ent
while((ent = GetPlayerWeaponSlot(client, i)) != -1)
{
RemovePlayerItem(client, ent)
AcceptEntityInput(ent, "Kill")
}
}
GivePlayerItem(client, "weapon_knife")
}
}