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

Steal the bomb!


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:         
Jordan
Veteran Member
Join Date: Aug 2005
Old 11-14-2005 , 17:43   Steal the bomb!
Reply With Quote #1

Description
This is basically a plugin to take the bomb from afkers or to steal it from people who refuse to plant ;)
*Note* - You don't actually GET the bomb - it just drops.

Version
1.0

Tested
Not at the moment

Known Errors
Won't compile... anyone wanna help??
Chance of not working/ct's being able to steal it.

Credits
Empty so far

Coming
- I'm going to make it so that you have to be in a certain radius to steal the bomb.

PLUGIN TO COME WHEN THE COMPILING ERRORS ARE DONE >.<

Until then, use this:
Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <cstrike> #define PLUGIN "Bomb Stealer" #define VERSION "1.0" #define AUTHOR "SatanWoJ" public plugin_init() {     register_plugin("Bomb Stealer", "1.0", "SatanWoJ")     register_clcmd("say /steal","steal",ADMIN_USER,"nick") } public steal(id, level, cid) {        new CS_TEAM_T=1     if (cs_get_user_team == 1)     new weaponname[33]     get_user_weapons(weaponname, 32)     if(containi(weaponname, "c4") > -1 ) {      register_event("ResetHUD", "stealbomb", "be")       } } public stealbomb(id, level, cid) {    client_cmd(id,"drop weapon_c4")    return PLUGIN_HANDLED }

Current compiling errors:
Quote:
/home/users/amxmodx/tmp3/phpnj7P2V.sma(20) : error 076: syntax error in the expression, or invalid function call
/home/users/amxmodx/tmp3/phpnj7P2V.sma(21) : error 003: declaration of a local variable must appear in a compound block
/home/users/amxmodx/tmp3/phpnj7P2V.sma(21) : error 017: undefined symbol "weaponname"
/home/users/amxmodx/tmp3/phpnj7P2V.sma(21) : warning 215: expression has no effect
/home/users/amxmodx/tmp3/phpnj7P2V.sma(21) : error 001: expected token: ";", but found "]"
/home/users/amxmodx/tmp3/phpnj7P2V.sma(21) : fatal error 107: too many error messages on one line
Jordan is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 11-14-2005 , 18:42  
Reply With Quote #2

Code:
new CsTeams:team = cs_get_user_team(id); if(team == CS_TEAM_T) {   // }
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Jordan
Veteran Member
Join Date: Aug 2005
Old 11-14-2005 , 18:58  
Reply With Quote #3

I edited it to this:
Code:
public steal(id, level, cid) {        new CsTeams:team = cs_get_user_team(id);     if(team == CS_TEAM_T) {     new weaponname[33]     get_user_weapons(weaponname, 32)     if(containi(weaponname, "c4") > -1 )     register_event("ResetHUD", "stealbomb", "be")       } }
But it gives me
Quote:
(23) : error 035: argument type mismatch (argument 1)
On the line
Quote:
get_user_weapons(weaponname, 32)
Jordan is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 11-14-2005 , 19:03  
Reply With Quote #4

http://www.amxmodx.org/funcwiki.php?go=func&id=163

There's more to that function then what you have.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Jordan
Veteran Member
Join Date: Aug 2005
Old 11-14-2005 , 19:23  
Reply With Quote #5

Ooops... I had that in before but the compiling didn't work so I took it out

Code:
    new weaponname[32]     new numWeapons, i, weapons[i]     get_user_weapons(id, weaponname, numWeapons)     for (i=0; i<numWeapons; i++)     if(containi(weaponname, "c4") > -1 )     register_event("ResetHUD", "stealbomb", "be")

Quote:
(27) : error 008: must be a constant expression; assumed zero
on this line:
new numWeapons, i, weapons[i]
Jordan is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 11-14-2005 , 19:27  
Reply With Quote #6

Fix and repost. Start a thread in the Scripting Help section if need be.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x 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 06:40.


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