Hey, i need help with the SourcePawn ConVars,
@mug1wara and
@micapat helped me out (thanks for that) but i still do not understand it.
Can someone rewrite this Code to Enable/Disenable with sm_awpdeagle 1/0
1 = Round Start, Player spawn with AWP and Deagle
0 = Round Start, Player spawn without AWP but have they own secondary weapon, UPS-S/ P2000 or Glock-18 for the T's.
PHP Code:
#include <sourcemod>
#include <sdkhooks>
public void OnPluginStart()
{
HookEvent("round_start", Event_Start);
}
public Action Event_Start(Event hEvent, const char[] sName, bool bDontBroadcast)
{
ServerCommand("mp_ct_default primary weapon_awp");
ServerCommand("mp_t_default primary weapon_awp");
ServerCommand("mp_ct_default_secondary weapon_deagle");
ServerCommand("mp_t_default_secondary weapon_deagle");
}
Round Start AWP and Deagle Plugin Requested by:
TrullSin here the:
Theard
Thanks to
@mug1wara for this
example, but hard to understand it. ^^