AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS: Source] Give C4 [Weapon C4 Explosive] (https://forums.alliedmods.net/showthread.php?t=186177)

Enkore 05-26-2012 16:13

[CS: Source] Give C4 [Weapon C4 Explosive]
 
1 Attachment(s)
Dear AlliedModders,

Today im Gonna Release The Plague : [ Give C4 ]
Actually, this mod just giving a C4 Bomb.
It's Necessary For Fun Games, Hosities, and a lot of fun stuff :)
This Plague Works Only Fore : Alive Counter-Terroriests
So they only who can controll the c4 for the terroriest.

Changelog :
26/05/2012 - First Release

Source :
PHP Code:

/* Plugin Template generated by Pawn Studio */

#include <sourcemod>
#include <sdktools>

#pragma semicolon 1

#define CS_TEAM_CT 3

public Plugin:myinfo 
{
    
name "Get C4",
    
author "Enkore",
    
description "Give User C4",
    
version "1.0",
    
url ""
}

public 
OnPluginStart()
{
    
RegConsoleCmd("sm_c4"Command_C4"Giving C4");
}

public 
Action:Command_C4(clientargs)
{
    if(
GetClientTeam(client) != CS_TEAM_CT && !IsPlayerAlive(client)) {
        
PrintToChat(client"\x04[SM]\x01 You Don't Have Access To This Command");
    } else {
        
GivePlayerItem(client"weapon_c4");
        
PrintToChat(client"\x04[SM]\x01 You Successfully Gained C4");
    }
    return 
Plugin_Handled;


Enjoy, Enkore.


Deathrow Bo Dean 09-13-2015 17:22

Re: [CS: Source] Give C4 [Weapon C4 Explosive]
 
!Enkore, I just installed and tested this Get-C4 plugin. When I say "!sm_c4" the c4 (or bomb) is dropped on the ground in front of me. Now can I as a CT pick it and plant it? I tried to do just that with no luck.
However, I've been looking everywhere for a plugin that will do just what Your plugin almost does. The only thing that seems to be missing is the ability for a CT to detonate the C-4. But I can say that Your plugin works just as you claim it will. Good Work...DBD

P.s If You can make the C-4 explode, Your plugin will be a big favorite on many CSS servers.

Darkness_ 09-13-2015 17:24

Re: [CS: Source] Give C4 [Weapon C4 Explosive]
 
Quote:

Originally Posted by Deathrow Bo Dean (Post 2342709)
!Enkore, I just installed and tested this Get-C4 plugin. When I say "!sm_c4" the c4 (or bomb) is dropped on the ground in front of me. Now can I as a CT pick it and plant it? I tried to do just that with no luck.
However, I've been looking everywhere for a plugin that will do just what Your plugin almost does. The only thing that seems to be missing is the ability for a CT to detonate the C-4. But I can say that Your plugin works just as you claim it will. Good Work...DBD

P.s If You can make the C-4 explode, Your plugin will be a big favorite on many CSS servers.

He posted this plugin over 3 years ago. I doubt he will see your request.

Deathrow Bo Dean 09-13-2015 17:35

Re: [CS: Source] Give C4 [Weapon C4 Explosive]
 
Yes I'm aware of that. But I hope someone out there who can program, may take a look at the code and create or with the correct permissions make the c-4 in this plugin explode or create a plugin that will do what i wish. It seems that I have 1/2 of what i'd like. There must be a command to detonate a bomb that's gets dropped on a map by a player.
Thank's for Your quick reply Darkness.. DBD
"Never Give Up Never Surrender"


All times are GMT -4. The time now is 00:33.

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