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

Awp Map Control For AMX X


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:          Approver:   devicenull (200)
ZiO114
Junior Member
Join Date: Apr 2004
Old 05-07-2004 , 18:08   Awp Map Control For AMX X
Reply With Quote #1

Quote:
This plugin will slay spawn shooters if they spawn shoot on awpmap.
It displays in red text when you are not allowed to shoot.

*Updated 1-06-04 *
-Fixed people getting slayed when they dont shoot.
Plugin made by f117bomb
All i did was port this plugin from amxmod to amxmodx. I havn't tested it yet. Will do it right this second. Ill update post if it works. If not, ill delete this post... Simple as that!
Attached Files
File Type: sma Get Plugin or Get Source (awp_map_control.sma - 3688 views - 1.6 KB)
File Type: amx awp_map_control.amx (1.6 KB, 1193 views)
ZiO114 is offline
ZiO114
Junior Member
Join Date: Apr 2004
Old 05-07-2004 , 18:14  
Reply With Quote #2

umm, havn't tested it yet .. but i saw that it says this..

Quote:
public plugin_init() {

register_plugin("Awp Map Control","0.1.5","f117bomb")
register_cvar("amx_awpmap_noshoot","5.0")

new mapname[33]
get_mapname(mapname,32)
awpmap = equali(mapname,"awp_map_cz") ? true : false

if(awpmap) {
register_event("RoundTime", "Round_Time", "bc")
register_event("Damage", "damage_msg", "b", "2!0", "3=0", "4!0")
}
return PLUGIN_CONTINUE
}
Can some scripter make it so it works for both awp_map and awp_map_cz? ... thanks!
ZiO114 is offline
ZiO114
Junior Member
Join Date: Apr 2004
Old 05-07-2004 , 18:20  
Reply With Quote #3

Tested: Works Fine, just needs the "awp_map_cz and awp_map" line
ZiO114 is offline
Fireace22
Member
Join Date: Apr 2004
Old 05-07-2004 , 21:14  
Reply With Quote #4

so whenever u change to any awp_ it starts the plugin right? it wont affect any other maps.. such an aim
Fireace22 is offline
onedamage
Senior Member
Join Date: Apr 2004
Location: Montreal Canada
Old 05-08-2004 , 14:08  
Reply With Quote #5

thx ZiO114
i've been waiting for a version that worked on my server, u made my day
__________________
69.12.99.130 Quebec Public CS 1.6
64.15.128.218 Quebec Public CS:SOURCE
www.QuebecPublic.com
onedamage is offline
Send a message via ICQ to onedamage Send a message via MSN to onedamage
ZiO114
Junior Member
Join Date: Apr 2004
Old 05-08-2004 , 17:21  
Reply With Quote #6

eh dont thank me.. haha all i changed was that #include=amxmod line and put a X at the end. i dont know anything about scripting. i just put x and it worked lol. it looked obvious. thank the original creator
ZiO114 is offline
Burnzy
Veteran Member
Join Date: Apr 2004
Old 05-08-2004 , 17:25  
Reply With Quote #7

wait so this makes ANY awp_ map with awp_ in the front do this???

off topic: is there a awp_map_cz???
never knew of that...
__________________
Burnzy is offline
Send a message via AIM to Burnzy
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 05-08-2004 , 20:11  
Reply With Quote #8

changing
Code:
public plugin_init() {         register_plugin("Awp Map Control","0.1.5","f117bomb")     register_cvar("amx_awpmap_noshoot","5.0")      new mapname[33]     get_mapname(mapname,32)     awpmap = equali(mapname,"awp_map") ? true : false     if(awpmap)   {          register_event("RoundTime", "Round_Time", "bc")         register_event("Damage", "damage_msg", "b", "2!0", "3=0", "4!0")     }     return PLUGIN_CONTINUE }
to
Code:
public plugin_init() {         register_plugin("Awp Map Control","0.1.5","f117bomb")     register_cvar("amx_awpmap_noshoot","5.0")          new mapname[33]     get_mapname(mapname,32)     if(equal(mapname,"awp_",3))   {          register_event("RoundTime", "Round_Time", "bc")         register_event("Damage", "damage_msg", "b", "2!0", "3=0", "4!0")     }     else if(equal(mapname,"awm_",3))   {          register_event("RoundTime", "Round_Time", "bc")         register_event("Damage", "damage_msg", "b", "2!0", "3=0", "4!0")     }     return PLUGIN_CONTINUE }

should make it work for any map beginning with awp_ or awm_ (yes there are some) I THINK that should work

it also removes the need for the bool variable awpmap up at the top of the plugin I believe.
this line
Code:
new bool:awpmap
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
CheesyPeteza
Senior Member
Join Date: Feb 2004
Location: UK
Old 05-08-2004 , 20:39  
Reply With Quote #9

It felt a bit rude to post this in the thread on the AMXMod forums, but since this has just been ported you shouldn't mind so much. There is another way of fixing awp_map.

Install this version I made on your server:

http://www.holcroft.net/~cheesy/awp_map.zip

The players don't need to download a new map, only the server needs this updated map. In this version players spawn without guns and receive them 5 seconds later giving time to find cover and stop the spawn shooting. Also disabled weapon buying so it's only AWP's. Added more spawn points (now 32). (mp_freezetime 0 required)
__________________
YO|Cheesy Peteza

[email protected]

CheesyPeteza is offline
[cTs] Corvette
Senior Member
Join Date: Apr 2004
Old 05-09-2004 , 23:48  
Reply With Quote #10

In the original AMX forum thread, I posted a version by one of my clanmates that reads from a .cfg file for the map names. Much easier than changing the code and recompiling.
[cTs] Corvette 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 18:43.


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