Raised This Month: $19 Target: $400
 4% 

Bonust +20HP for 1 player every rounds


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mr.sceR
Member
Join Date: Jan 2011
Location: Bulgaria
Old 03-19-2011 , 10:48   Bonust +20HP for 1 player every rounds
Reply With Quote #1

Hi I want to ask you if you can make a plugin at the beginning of each round gives a bonus but not +20 HP izkam to give each player and a random and displayed in the chat Congratulations nick won +20 bonus.
Thank you very much
Sorry for my bad English
Mr.sceR is offline
Send a message via Skype™ to Mr.sceR
Old 03-19-2011, 10:49
Mr.sceR
This message has been deleted by Mr.sceR.
walkero
Junior Member
Join Date: Feb 2011
Location: Bulgaria
Old 03-19-2011 , 11:03   Re: Bonust +20HP for 1 player every rounds
Reply With Quote #2

Found this somewhere on the forums long time ago

PHP Code:
#include <amxmodx>
#include <fun>
#include <colorchat>

public plugin_init()
{
    
register_event("HLTV""EventHLTV""a""1=0""2=0")
}

public 
EventHLTV()
{
    
set_task(0.1"GiveHealth")
}

public 
GiveHealth()
{
    new 
players[32], count
    get_players
(playerscount"a")
    
    if(
count)
    {
        new 
iPlayer players[random(count)]
        new 
name[32]
        
get_user_name(iPlayernamecharsmax(name))
        
set_user_health(iPlayerget_user_health(iPlayer)+25)
        
        
ColorChat(0TEAM_COLOR"^x04[HP]^x01 Gratz to^x03 %s^x01! He recieved^x04 +25^x01 hp."name)
    }

walkero is offline
Send a message via Skype™ to walkero
Mr.sceR
Member
Join Date: Jan 2011
Location: Bulgaria
Old 03-19-2011 , 11:58   Re: Bonust +20HP for 1 player every rounds
Reply With Quote #3

Thank you very much

Last edited by Mr.sceR; 03-19-2011 at 12:28.
Mr.sceR is offline
Send a message via Skype™ to Mr.sceR
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 17:50.


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