PDA

View Full Version : sa_treetops map modification


Bento
09-07-2005, 11:17
sa_treetops map modification
Based on Theophage's nosnipes plugin
Sorry i coulnt comeup with a better name :P

Description

The map sa_treetops is a cool map with scouts and awp's and autosnipers. Only i didnt like the autosnipe and awp so i took de no snipes plugin from Theophage. Which replaces the AWP and Auto with a scout when you pick it up.
Now i wasn't satisfied with is so i added a cvar to enable/disable it.

The map sa_treetops gives you a pistol and knife at the beginning of the round but most of the time you dont get those weapons (for some reason).

So i added this feature to the plugin, it gives you now a glock or usp and a knife when you pickup a scout. (Scouts are al over the place)

cVars: sv_treetops (deafult is 0)
use the custom map plugin builtin to AMXX to enable the cVar.

Do do so make a folder called "maps" in your configs dir and then make a file called: sa_treetops.cfg and add this in the file:

sv_treetops 1
And you're set.

-Cheers

M4Dd0G
09-07-2005, 11:37
thanks i will try it
:lol:




works GREAT now i have the handguns to

v3x
09-07-2005, 12:02
public check_awp(id) {
new parm[1]
new currentmap[64]
parm[0] = id
get_mapname(currentmap, 63)
if(containi(currentmap,"awp_")!=-1)) {
set_task(0.1, "drop_awp", id, parm, 1)
}
} :wink:

Bento
09-07-2005, 12:32
so?

CubicVirtuoso
09-07-2005, 13:25
Or Even:

public check_awp(id) {
new currentmap[64]
get_mapname(currentmap, 63)
if(containi(currentmap,"awp_")!=-1)) {
drop_awp(id)
}
return PLUGIN_CONTINUE
}

But then since your other function works with strings it makes it a bit more complicated. Although it woulda saved u lots of lines in ur drop_awp function

like this one:

new id = parm[0]

cause your function prototype could look like this:

public drop_awp(id)

which calls for a more functional program. GOD im bored at school

:)

Bento
09-07-2005, 14:30
school... lol i still have vacation :P I took those lines of codes from that other plugin ;)

twistedeuphoria
12-14-2005, 14:16
Choose a category. Old. Moved to Unapproved/Old Plugins forum.