AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [CS:S/CS:GO] Spawn C4 Bomb by command (https://forums.alliedmods.net/showthread.php?t=342715)

r3v 05-07-2023 08:57

[CS:S/CS:GO] Spawn C4 Bomb by command
 
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(clientpos);   
        
DispatchKeyValueVector(c4"origin"pos);   
        
DispatchSpawn(c4);   
        
SetEntProp(c4Prop_Send"m_bBombTicking"1);        
    }   
}
 
public 
OnPluginStart()
{
   
RegConsoleCmd("c4spawn",Test);
}
 
public 
Action:Test(clientargs)
{
   if (
clientCreateC4(client);



Grey83 05-08-2023 13:04

Re: [CS:S/CS:GO] Spawn C4 Bomb by command
 
your old thread: https://forums.alliedmods.net/showthread.php?p=2771603


All times are GMT -4. The time now is 17:35.

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