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

unburyme


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose       
scriptyboy
BANNED
Join Date: Sep 2005
Old 09-23-2005 , 20:08   unburyme
Reply With Quote #1

I made this plugin for use with the map de_rats so people can get unburied from the elevator when they get stuck...They can only use it once a round(That way no abuse) and only on the map de_rats...It is made so any user can type /unbury in normal chat or use amx_unburyme in console. Thanks for all the help amxx comunity.

updated
Attached Files
File Type: sma Get Plugin or Get Source (unburyme.sma - 1212 views - 1.4 KB)
scriptyboy is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 09-28-2005 , 18:15  
Reply With Quote #2

wow, thats like almost completely useless to anyone but you... If someone gets stuck in the elevator (I have never seen this or had it happen to me) then this is good, other than that this is completely almost entirely useless.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
scriptyboy
BANNED
Join Date: Sep 2005
Old 09-28-2005 , 18:24  
Reply With Quote #3

it happens randomly when you get to the top of the elevator on de_rats...i think it only happens when you change weapons on the elevator.
scriptyboy is offline
CLAN-URBAN
Junior Member
Join Date: Sep 2005
Old 09-29-2005 , 05:15  
Reply With Quote #4

LOL goodjob man i give you credit for trying also i have had that problem man so good job
CLAN-URBAN is offline
scriptyboy
BANNED
Join Date: Sep 2005
Old 09-29-2005 , 06:52  
Reply With Quote #5

yea i think the plugin stopped working...so i have to work out the bugs.
scriptyboy is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 09-29-2005 , 17:28  
Reply With Quote #6

Code:
if(unbury_used[id]<=get_cvar_num("amx_unbury_amount")) {     return PLUGIN_HANDLED }
That will not allow them to ever unbury if the cvar is set to anything possitive, or 0. Should be:
Code:
if(unbury_used[id]>=get_cvar_num("amx_unbury_amount")) {     return PLUGIN_HANDLED }
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 12-13-2005 , 17:23  
Reply With Quote #7

Broken. This will work for any map with "rats" in the name and it never increments the usage counter.
__________________
twistedeuphoria is offline
Lukaso
Junior Member
Join Date: May 2005
Old 12-21-2005 , 13:24  
Reply With Quote #8

Can somebody fix that great small plugin? Plugin crash on line 19 on startup.

Thanks
Lukaso is offline
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 12-21-2005 , 15:40  
Reply With Quote #9

He put register_concmd instead of clcmd for a say cmd...

Too lazy to compile it, so ya..
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
Lukaso
Junior Member
Join Date: May 2005
Old 12-21-2005 , 16:46  
Reply With Quote #10

@Kensai
Thanks, but I worked about 1 hour myself on it and I finished self yet. There where more bugs. I improved it a little bit . My first step into pluginwriting 4 amxx. Iam better in programming Java, Basic and PHP.

Code:
#include <amxmodx> 
#include <amxmisc> 
#include <fun> 

new unbury[33];
new mapname[64];

public plugin_init() 
{ 
	register_plugin("UnburyMe","0.5","boadmin & Lukaso");
    	get_mapname(mapname, 63);
	register_clcmd("say /unbury", "cmd_unbury", 0);
	register_concmd("amx_unbury", "cmd_unbury", 0);
	if(equal(mapname, "de_rats2k4"))
	{
		register_cvar("amx_unbury_amount", "1");
		register_logevent("round_start", 2, "0=World triggered", "1=Round_Start");
	}
} 

public round_start() 
{
	new id
 	for(id = 0; id <= 32; id++)
	{
		unbury[id] = 0;
	}
} 

public cmd_unbury(id, level, cid)
{
	if(!cmd_access(id, level, cid, 0))
	{
		return PLUGIN_HANDLED; 
	}
	else if(!is_user_alive(id))
	{
		client_print(id, print_chat, "you can use /unbury only, if you are alive")
		return PLUGIN_HANDLED; 
	}
	else if(unbury[id] >= get_cvar_num("amx_unbury_amount"))
	{
		client_print(id, print_chat, "you can use /unbury only %d time(s) a round", get_cvar_num("amx_unbury_amount"))
		return PLUGIN_HANDLED; 
	}
	else if(!equal(mapname, "de_rats2k4"))
	{
		client_print(id, print_chat, "you can use /unbury only on de_rats2k4")
		return PLUGIN_HANDLED;
	}
	new origin[3];
	get_user_origin(id, origin);
	origin[2] += 50;
	set_user_origin(id, origin);
	unbury[id]++;
	new name[32]; 
	get_user_name(id, name, 31); 
	client_print(0, print_chat, "%s has been unburied", name); 
	return PLUGIN_HANDLED; 
}
Attached Files
File Type: sma Get Plugin or Get Source (unburyme.sma - 1083 views - 1.4 KB)
Lukaso 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 03:03.


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