Raised This Month: $51 Target: $400
 12% 

c4 bomb


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tarkan00
Senior Member
Join Date: Jan 2017
Old 08-23-2017 , 10:22   c4 bomb
Reply With Quote #1

hello ,
I want take c4 bomb from place with this command
example: If the c4 bomb has fallen and if I am write /takec4
c4 bomb is going to remove in falling
item(c4 bomb) is going to give command writer
Sorry I don't very well speak english
For example :

PHP Code:
register_clcmd("say /takec4","work"

public 
work(id){ 
// if bomb is not in fallen  
client_print(id,print_chat,"YOU CAN'T TAKE  C4 because bomb has got carrier"
return 
PLUGIN_HANDLED

else 

/// if c4 in fallen 
//remove_item(c4bomb)  // in fallen  
//and 
give_item(id,"weapon_c4"
tarkan00 is offline
tarkan00
Senior Member
Join Date: Jan 2017
Old 08-28-2017 , 05:48   Re: c4 bomb
Reply With Quote #2

up++
tarkan00 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-28-2017 , 09:45   Re: c4 bomb
Reply With Quote #3

So you want to be able to take c4 by a command if it's dropped?
__________________
HamletEagle is offline
tarkan00
Senior Member
Join Date: Jan 2017
Old 08-28-2017 , 13:41   Re: c4 bomb
Reply With Quote #4

Quote:
Originally Posted by HamletEagle View Post
So you want to be able to take c4 by a command if it's dropped?
yes , I want, if c4 bom dropped and if terrorist teams's player wrote /takec4
it player will take c4 bomb and falling c4 bomb will deleted

sorry for english..
tarkan00 is offline
tarkan00
Senior Member
Join Date: Jan 2017
Old 09-12-2017 , 02:19   Re: c4 bomb
Reply With Quote #5

Up
tarkan00 is offline
PartialCloning
Senior Member
Join Date: Dec 2015
Old 09-13-2017 , 11:15   Re: c4 bomb
Reply With Quote #6

Code:
#include <amxmodx>
#include <engine>
#include <fakemeta>
#include <hamsandwich>

const CWeaponBox = 4;
const m_bIsBomb = 105;

public plugin_init()
{
	register_plugin("Pick Up C4", "1.0", "Partial Cloning");
	register_clcmd("say /takec4", "CMD_TakeC4");
}

public CMD_TakeC4(id)
{
	new C4;
	while(pev_valid((C4 = find_ent_by_class(C4, "weaponbox"))))
	{
		if(!get_pdata_int(C4, m_bIsBomb, CWeaponBox))
			continue;

		ExecuteHam(Ham_Touch, C4, id);
		return;
	}

	client_print(id, print_chat, "* No C4s found!");
}

Last edited by PartialCloning; 09-13-2017 at 11:15.
PartialCloning is offline
tarkan00
Senior Member
Join Date: Jan 2017
Old 10-03-2017 , 11:02   Re: c4 bomb
Reply With Quote #7

Quote:
Originally Posted by PartialCloning View Post
Code:
#include <amxmodx>
#include <engine>
#include <fakemeta>
#include <hamsandwich>

const CWeaponBox = 4;
const m_bIsBomb = 105;

public plugin_init()
{
	register_plugin("Pick Up C4", "1.0", "Partial Cloning");
	register_clcmd("say /takec4", "CMD_TakeC4");
}

public CMD_TakeC4(id)
{
	new C4;
	while(pev_valid((C4 = find_ent_by_class(C4, "weaponbox"))))
	{
		if(!get_pdata_int(C4, m_bIsBomb, CWeaponBox))
			continue;

		ExecuteHam(Ham_Touch, C4, id);
		return;
	}

	client_print(id, print_chat, "* No C4s found!");
}
not working
tarkan00 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 16:30.


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