Raised This Month: $100 Target: $400
 25% 

player unbury


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Gameplay        Approver:   EKS (167)
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 01-13-2006 , 17:06   player unbury
Reply With Quote #1

Player Unbury

Decription: Have you ever been playing on a map with an elevator and gotten stuck? well this great plugin allows a player to unbury themselves from it once per round.(makes sure theres no abuse) Only works on maps with func_train in it.

It displays an anouncement on round start on how to use the plugin, blocks use when you are dead, and limits the amount of uses with a cvar per round.

original

Credits:
Scriptyboy - Original idea and base code.
MistaGee & V3X - Helped with original plugin and unbury code
Kensai - concmd -> clcmd part.
Lukaso - Cleaned code and fixed plugin (map checker)
VEN - Reminded me of clcmd (im an idiot) and cleaned code again
SweatyBanana - Added advertisement with CVAR


CVARS:
amx_unbury_amount (default - 1)
Commands:
say /unbury
say_team /unbury
Known Bugs:
NONE
Required Modules:
fakemeta
fun
Tested on:
CS 1.6/AMXX 1.75a/WINDOWS
Versions:
v0.1 - Original code
v0.2 - New unbury code
v0.3 - New unbury amount checker
v0.4 - New rats checker
v0.5 - New Code, redone
v0.6 - Anouncement how to unbury
v0.7 - Fixed text in anouncement for how to unbury
v0.8 - Fixed more text in anouncemtnts
v0.9 - Changed mapchecker string size
v1.0 - Added fakemeta to check func_train and redid a little code
v1.1 - PCVARS and multilingual support added

Languages (MORE TO COME)
en - SweatyBanana
de - flintst0nes
nl - geertjan88
sv - Fr3ak0ut
es - KylixMynxAltoLAG
bp - commonbullet
hu - Dav3
Attached Files
File Type: sma Get Plugin or Get Source (player_unbury.sma - 1140 views - 1.7 KB)
File Type: txt unburylang.txt (1.9 KB, 275 views)

Last edited by SweatyBanana; 10-01-2006 at 20:10.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 01-13-2006 , 20:27  
Reply With Quote #2

Place holder for future releases.

Last edited by SweatyBanana; 08-15-2006 at 14:07.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
VEN
Veteran Member
Join Date: Jan 2005
Old 01-14-2006 , 07:07  
Reply With Quote #3

Replace register_concmd with register_clcmd since your commands can be used only from client console.
Also better:
Code:
// public round_start() {    for(new id = 1; id <= 32; id++)       unbury[id] = 0; } public cmd_unbury(id, level, cid) {    if(!cmd_access(id, level, cid, 1))       return PLUGIN_HANDLED;    if(!is_user_alive(id))       client_print(id, print_chat, "you can use /unbury only, if you are alive")    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"))    else if(!equal(mapname, "de_rats"))       client_print(id, print_chat, "you can use /unbury only on de_rats Maps")    else    {       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; }
VEN is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 01-14-2006 , 07:10  
Reply With Quote #4

I always end up in credits not knowing what I did
__________________
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
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 01-14-2006 , 12:27  
Reply With Quote #5

lol.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 01-14-2006 , 12:35  
Reply With Quote #6

Who rated this useless?
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 01-14-2006 , 23:41  
Reply With Quote #7

Yawn..no1 loves my plugin.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 01-15-2006 , 00:02  
Reply With Quote #8

New Version!

Added:
Advertisement for unbury, Telling people how to unbury.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 01-15-2006 , 00:24  
Reply With Quote #9

Might wanna start the task in here:
Code:
   if(equal(mapname, "de_rats"))    {       register_cvar("amx_unbury_amount", "1");       register_logevent("round_start", 2, "0=World triggered", "1=Round_Start");    }
__________________
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
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 01-15-2006 , 01:23  
Reply With Quote #10

How come?

What does it make a difference?
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
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 11:56.


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