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

sa_treetops map modification


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:         
Bento
SourceMod Donor
Join Date: May 2005
Location: The Netherlands
Old 09-07-2005 , 11:17   sa_treetops map modification
Reply With Quote #1

sa_treetops map modification
Based on Theophage's nosnipes plugin
Sorry i coulnt comeup with a better name

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
Attached Files
File Type: sma Get Plugin or Get Source (treetops.sma - 1188 views - 1.6 KB)
__________________
Bento is offline
M4Dd0G
Junior Member
Join Date: Jun 2005
Old 09-07-2005 , 11:37  
Reply With Quote #2

thanks i will try it





works GREAT now i have the handguns to
__________________
M4Dd0G is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 09-07-2005 , 12:02  
Reply With Quote #3

Code:
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)     } }
__________________
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
Bento
SourceMod Donor
Join Date: May 2005
Location: The Netherlands
Old 09-07-2005 , 12:32  
Reply With Quote #4

so?
__________________
Bento is offline
CubicVirtuoso
Senior Member
Join Date: Sep 2004
Location: Canada
Old 09-07-2005 , 13:25  
Reply With Quote #5

Or Even:

Code:
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

__________________
Sig Under Construction.
CubicVirtuoso is offline
Send a message via ICQ to CubicVirtuoso Send a message via AIM to CubicVirtuoso Send a message via MSN to CubicVirtuoso Send a message via Yahoo to CubicVirtuoso
Bento
SourceMod Donor
Join Date: May 2005
Location: The Netherlands
Old 09-07-2005 , 14:30  
Reply With Quote #6

school... lol i still have vacation I took those lines of codes from that other plugin ;)
__________________
Bento is offline
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 12-14-2005 , 14:16  
Reply With Quote #7

Choose a category. Old. Moved to Unapproved/Old Plugins forum.
__________________
twistedeuphoria 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 13:40.


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