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

player unbury


Post New Thread Reply   
 
Thread Tools Display Modes
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 09-01-2006 , 17:49   Re: player unbury
Reply With Quote #41

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

new unbury[33];
new 
AMOUNT;

public 
plugin_init()
{
    
/* Register plugin */
    
register_plugin("Player Unbury","1.1","SweatyBanana");

    
/* Register LANG file */
    
register_dictionary("unburylang.txt")

    
/* Register commands */
    
register_clcmd("say /unbury","cmd_unbury",0);
    
register_clcmd("say_team /unbury","cmd_unbury",0);

    
/* Find elevator */
    
if(engfunc(EngFunc_FindEntityByString,-1,"classname","func_vehicle") > 0)
    {
        
/* If elevator is there run rest of program */
        
AMOUNT register_cvar("amx_unbury_amount","1");
        
register_logevent("round_start",2,"0=World triggered","1=Round_Start");
    }
}

public 
round_start()
{
    
/* Create variables */
    
new Players[32],Playersnum
    get_players
(Players,Playersnum,"c")

    
/* Loop thru players */
    
for(new id 0;id Playersnum;id++)
        
unbury[id] = 0;
    
/* Print message */
    
client_print(0,print_chat,"%L",LANG_SERVER,"UNBURY_ADVERT")


}

public 
cmd_unbury(id)
{
    
/* Check if alive */
    
if(!is_user_alive(id))
        
client_print(id,print_chat,"%L",LANG_PLAYER,"UNBURY_DEAD")
    
/* Check if used too much */
    
else if(unbury[id] >= get_cvar_num("amx_unbury_amount"))
        
client_print(id,print_chat,"%L",LANG_PLAYER,"UNBURY_LIMIT",get_pcvar_num(AMOUNT))

    else
    {
        
/* Unbury the player */
        
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,"%L",LANG_SERVER,"UNBURY_SUCCESS",name);
    }
    return 
PLUGIN_HANDLED;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/ 
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
`666
AlliedModders Donor
Join Date: Jan 2006
Old 09-01-2006 , 18:16   Re: player unbury
Reply With Quote #42

Big thanks
`666 is offline
sgtbane
Member
Join Date: Feb 2006
Old 09-12-2006 , 00:32   Re: player unbury
Reply With Quote #43

not saying this plugin is useless... but if people would learn how to control there cstrike dude properly, you would never have that problem.
People need to master how to make the game physics work to there advantage, not just how to shoot at heads.
An easy way to unstuck yourself, is to simply smash your duck key a whole lot of times. You can also either use a good script, or simply (bind backspace "+duck;wait;-duck") hold your key for a few sec and bam! your unstuck.. personally i find it much easyer to hit a bind a few times, then to have a special plugin just to keep morons from getting stuck.
__________________
[Add|Community]

~SgtBane
sgtbane is offline
Send a message via MSN to sgtbane
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 10-01-2006 , 19:10   Re: player unbury
Reply With Quote #44

Uploaded new lang file a minute ago..

Thanks to translators
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
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 12:01.


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