AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   C4 drop (https://forums.alliedmods.net/showthread.php?t=139776)

edgaras85 10-05-2010 04:50

C4 drop
 
Hi i made plug that gives C4
But when you used it stills remain in your inventory
How to make that if you planted it, to remove it from your inventory....

Hunter-Digital 10-05-2010 09:14

Re: C4 drop
 
That doesn't happen... if you plant the bomb it drops from your inventory, there must be some problem with your giving c4 plugin.

edgaras85 10-05-2010 10:51

Re: C4 drop
 
Quote:

Originally Posted by Hunter-Digital (Post 1316125)
That doesn't happen... if you plant the bomb it drops from your inventory, there must be some problem with your giving c4 plugin.

give_item(id,"weapon_c4");
Whats bad?

Its not like C4 its edited item but, when i place it doesnt drop it still remains....
Its like c4 but you can place everywhere...

Bugsy 10-05-2010 13:53

Re: C4 drop
 
http://www.amxmodx.org/funcwiki.php?go=func&id=198

See notes

edgaras85 10-05-2010 14:26

Re: C4 drop
 
Quote:

Originally Posted by Bugsy (Post 1316310)

Look, you got it bad

I buy like a super weapon, and gives you C4 with other model
and you can set it everywhere but when you set it still remains....

FiFiX 10-05-2010 14:28

Re: C4 drop
 
Maybe show your plugin source here?...

edgaras85 10-05-2010 15:26

Re: C4 drop
 
Quote:

Originally Posted by FiFiX (Post 1316339)
Maybe show your plugin source here?...

Sorry, cant Private plugin...

Bugsy 10-05-2010 16:14

Re: C4 drop
 
Did you try to call cs_set_user_plant( id , 0 , 0 ) after the bomb is planted? If not, try it.

edgaras85 10-05-2010 16:20

Re: C4 drop
 
Quote:

Originally Posted by Bugsy (Post 1316431)
Did you try to call cs_set_user_plant( id , 0 , 0 ) after the bomb is planted? If not, try it.

Not helping :(

Hunter-Digital 10-05-2010 19:28

Re: C4 drop
 
Show the code if you want help, the C4 doesn't stick around after beeing planted.

Or you could look here: http://forums.alliedmods.net/showthread.php?t=132115
The C4 is a special weapon and can be planted anywhere, it's the default one and does not remain in inventory after beeing planted.


All times are GMT -4. The time now is 10:16.

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