Raised This Month: $ Target: $400
 0% 

[CS:S/CS:GO] Spawn C4 Bomb by command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
r3v
Senior Member
Join Date: Feb 2016
Location: Lithuania, Vilnius
Old 05-07-2023 , 08:57   [CS:S/CS:GO] Spawn C4 Bomb by command
Reply With Quote #1

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);

r3v is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 05-08-2023 , 13:04   Re: [CS:S/CS:GO] Spawn C4 Bomb by command
Reply With Quote #2

your old thread: https://forums.alliedmods.net/showthread.php?p=2771603
__________________
Grey83 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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