For CS:GO is working perfecly. In CS:S, i execute command and bomb just beeps and not exploding. Can someone help?
PHP Code:
#pragma semicolon 1
#include <sdktools>
#include <sdktools_functions>
#include <sourcemod>
#include <cstrike>
stock CreateC4(client)
{
new c4 = CreateEntityByName("planted_c4");
if (c4 != -1)
{
new Float:pos[3];
GetClientAbsOrigin(client, pos);
DispatchKeyValueVector(c4, "origin", pos);
DispatchSpawn(c4);
SetEntProp(c4, Prop_Send, "m_bBombTicking", 1);
}
}
public OnPluginStart()
{
RegConsoleCmd("c4spawn",Test);
}
public Action:Test(client, args)
{
if (client) CreateC4(client);
}