Hello Guys
Yes verry nice Plugin.
But verry much Players on our Server gives bad suggestions.
So i do following changes:
A) minnimum player check
B) Sentry Block on specified Maps
C) Sentry Block on own Buyzone
My knowledge with AMXX on this Area is verry bad, but i tryd my best.
If someone have better ideas / codes then please post it.
-------- do this ----------
Put following Code directly unter the Public definitions, of course its everytime the same code.
But i dont know how to make it global for all these pubs...
PUB 1: public createsentryhere(id)
PUB 2: public sentry_build(id)
PUB 3: public menumain(id)
Code:
// Number 6 defines min. 6 players before Sentry can be build
if(get_playersnum()<6)
{
set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 6.0, 5.0)
show_hudmessage(id, "6 Players needed for Sentry, current: %s", get_playersnum())
return PLUGIN_HANDLED
}
new mapname[32]
get_mapname(mapname, 31)
if (equal(mapname, "cs_deagle5") || equal(mapname, "fy_pool_day") || equal(mapname, "cs_747") || equal(mapname, "cs_estate") || equal(mapname, "cs_neighborhood") || equal(mapname, "aim_sbscoutz") || equal(mapname, "cs_city_assault") || equal(mapname, "cs_assault_ahoy"))
{
set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 6.0, 5.0)
show_hudmessage(id, "Sentrys are forbidden on Map %s", mapname)
return PLUGIN_HANDLED
}
if(cs_get_user_buyzone(id)>0)
{
set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 6.0, 5.0)
show_hudmessage(id, "cannot BUILD Sentry on Buyzone!")
return PLUGIN_HANDLED
}
With this Codes its better for Teamplay and Public Server with WC3 Mod, because otherwise its to much ...
I also changed the Config for an Sentry to this:
new const g_SENTRYFRAGREWARDS[3] = {300, 150, 150} // how many $ you get if your sentry frags someone. If you built and upgraded to level 3 you would get $300 + $150 = $450. If built and upgraded all you would get $600.
new const g_DMG[3] = {6, 9, 11} // how much damage a bullet from a sentry does per hit
new const Float:g_THINKFREQUENCIES[3] = {1.1, 0.8, 0.5} // how often, in seconds, a sentry searches for targets when not locked at a target, a lower value means a sentry will lock on targets faster
new const Float:g_HITRATIOS[3] = {0.18, 0.70, 0.75} // how good a sentry is at hitting its target. 1.0 = always hit, 0.0 = never hit
new const Float:g_HEALTHS[3] = {650.0, 710.0, 730.0} // how many HP a sentry has. Increase to make sentry sturdier
new const g_COST[3] = {4000, 1000, 2000} // fun has a price, first is build cost, the next two upgrade costs
So its verry fair..
Also changed 2 Sentrys per player to one!
Thats the best use without loosing the gaming fun.
best greets
XCoder