Raised This Month: $95 Target: $400
 23% 

Capture the Awp


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Johnny got his gun (102)
genesis
Senior Member
Join Date: Oct 2004
Location: CALIFORNIA, USA
Old 11-02-2004 , 04:16   Capture the Awp
Reply With Quote #1

Capture the Awp can be used as either a game, or just simple awp restriction. To start with this plugin works best when normal awp restriction is already enabled via the amxmodmenu. Users type "/giveAwp" to be issued an awp. If they have enough money and the awp isn't already on the map, then they will get it. Nice t-says let people know when the awp has been picked up, lost by dropping, or lost by death. There is the option to punish the team that "loses the awp", but by default it is disabled. This can make having an awp much more fun, because it is rare, also it makes you have more respect for the person with the awp, because there is only one person on the entire map who can carry it. Let me know what you think about it.

to disable the plugin ingame set
amx_CTAactive 0

to enable team punishment
amx_CTApunish 1

to enable player punishment
amx_CTApunish 2

to set price of awp package 0<x<16000
amx_CTAprice <x=amount>

Note the file name has changed to capture_the_awp, so be sure if upgrading to latest file, to disable the old the_man_with_awp file
Attached Files
File Type: sma Get Plugin or Get Source (capture_the_awp.sma - 2031 views - 11.4 KB)
__________________
CS 1.6 cali.radclan.net:27015
I have a feeling we're not in cs anymore.
I take pride that all my AMXX plugins were writen in notepad.
genesis is offline
kalel
Senior Member
Join Date: Aug 2004
Old 11-02-2004 , 17:59  
Reply With Quote #2

I like the idea but the killing the hole team for loss of awp and killing some one who killed the owner of the awp if they can't get it seems kinda harsh espcialy if the idea is to make the awp a rare thing
kalel is offline
genesis
Senior Member
Join Date: Oct 2004
Location: CALIFORNIA, USA
Old 11-02-2004 , 23:25   updated please test it out
Reply With Quote #3

I have updated the sma, and now believe the plugin is ready for use. There are still 4 warnings when compiling, I've looked at the code and am not really understanding the warnings as such, if you know what the problem is please let me know, otherwise the plugin should work just fine.
__________________
CS 1.6 cali.radclan.net:27015
I have a feeling we're not in cs anymore.
I take pride that all my AMXX plugins were writen in notepad.
genesis is offline
Deagle Snipin
Member
Join Date: Oct 2004
Old 11-04-2004 , 12:13  
Reply With Quote #4

Hey homey, i like the idea, but this doesnt compile!

Quote:
Sorry, this plugin failed to compile!
You should try notifying the author so they can fix this.
Im looking for the 1.6 version. Thanks!
Deagle Snipin is offline
genesis
Senior Member
Join Date: Oct 2004
Location: CALIFORNIA, USA
Old 11-04-2004 , 16:53   update
Reply With Quote #5

thanks for letting me know, I've fixed it to work with 0.16. I've gotten so used to writing only for 0.20. But, its working now .

Fixed a another small bug
added a cvar amx_CTAprice << now you can set the price of the awp package.

I have more time to work on improving this now. Probably tonight i will enhance it further
__________________
CS 1.6 cali.radclan.net:27015
I have a feeling we're not in cs anymore.
I take pride that all my AMXX plugins were writen in notepad.
genesis is offline
Deagle Snipin
Member
Join Date: Oct 2004
Old 11-05-2004 , 02:38   Re: update
Reply With Quote #6

Quote:
Originally Posted by genesis
thanks for letting me know, I've fixed it to work with 0.16. I've gotten so used to writing only for 0.20. But, its working now .
Thanks! This rocks! I have it setup to be enabled by vote. Its sooo fun!

Nice work!

Code:
Oh by the way, its spelled - successfully .
[/small]
Deagle Snipin is offline
genesis
Senior Member
Join Date: Oct 2004
Location: CALIFORNIA, USA
Old 11-05-2004 , 02:57   updated
Reply With Quote #7

Updated:

Fixed major glitch > if user disconnected while holding awp, it would register as awp is lost and nobody could get an awp until next map change.

+Other slight modifications.
__________________
CS 1.6 cali.radclan.net:27015
I have a feeling we're not in cs anymore.
I take pride that all my AMXX plugins were writen in notepad.
genesis is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 11-07-2004 , 10:18  
Reply With Quote #8

Quote:
Welcome to the AMX Mod X 0.20-251 Compiler.
Copyright (c) 1997-2004 ITB CompuPhase, AMX Mod X Team

C:\DOCUME~1\JONNY\LOKALA~1\TEMP\the_man_with_ awp.sma(17 : warning 213: tag mismatch
C:\DOCUME~1\JONNY\LOKALA~1\TEMP\the_man_with_ awp.sma(188 -- 189) : warning 215: expression has no effect
C:\DOCUME~1\JONNY\LOKALA~1\TEMP\the_man_with_ awp.sma(192 -- 193) : warning 215: expression has no effect
C:\DOCUME~1\JONNY\LOKALA~1\TEMP\the_man_with_ awp.sma(201) : warning 213: tag mismatch

4 Warnings.
Done.
Tag mismatches: Don't use undefined constants (1, 2) when checking for team. Use CS_TEAM_T, CS_TEAM_CT etc.

Expression has no effect: You are just stating "PLUGIN_HANDLED" like this:
Code:
            else             {                 PLUGIN_HANDLED             }
It is likely that you forgot to put a return in there first.
Code:
else             {                 return PLUGIN_HANDLED             }

Did you even try to compile this before release?
Johnny got his gun is offline
genesis
Senior Member
Join Date: Oct 2004
Location: CALIFORNIA, USA
Old 11-07-2004 , 14:31   here's johnny
Reply With Quote #9

yeah, thanks for alerting me about the plugin_handled part, exactly right. And, I changed over to using all defined vars such as CS_TEAM_CT, and CS_TEAM_T, but I still get 6 warnings on my newest plugin which I am uploading in about one minute. Yes, I did compile this before uploading as you might be able to tell from my third post(please read again). This is my first plugin that has over 15 lines of code so please cut me a little slack.
__________________
CS 1.6 cali.radclan.net:27015
I have a feeling we're not in cs anymore.
I take pride that all my AMXX plugins were writen in notepad.
genesis is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 11-07-2004 , 17:03  
Reply With Quote #10

I suggest you fix your plugin to at least compile without errors and warnings before you release it. It's one of the few things we CAN do to keep quality around here a tad higher level.
Johnny got his gun is offline
Reply


Thread Tools
Display Modes

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 02:20.


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