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

give cmd to ct & give health to T & give health to CT


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Azeddine
Member
Join Date: Jul 2017
Location: ML_NOTFOUND
Old 09-30-2017 , 15:11   give cmd to ct & give health to T & give health to CT
Reply With Quote #1

hello at this public i need to give to all alives ct a cmd ( already chosen and worked )

public avs()
{
//give health to terro
//give health to ct
//give item by cmd already choosed

}
Azeddine is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 09-30-2017 , 15:48   Re: give cmd to ct & give health to T & give health to CT
Reply With Quote #2


register_clcmd("example", "avs");

public avs(id){
if (is_user_alive(id))
set_user_health(id, get_user_health(id) + 15);
}
__________________
Relaxing is offline
Ayman Khaled
Senior Member
Join Date: Mar 2017
Location: Palestine
Old 10-01-2017 , 00:04   Re: give cmd to ct & give health to T & give health to CT
Reply With Quote #3

Quote:
Originally Posted by Relaxing View Post

register_clcmd("example", "avs");

public avs(id){
if (is_user_alive(id))
set_user_health(id, get_user_health(id) + 15);
}
he said for ct/t
PHP Code:
new players[32], numiplayer
get_players
(playersnum"ae""CT")
while(
num)
{
    
player players[i]
    
set_user_health(playerget_user_health(player) + 15)
    
i++

__________________

Last edited by Ayman Khaled; 10-01-2017 at 08:09.
Ayman Khaled is offline
kristi
Senior Member
Join Date: Nov 2016
Old 10-01-2017 , 07:08   Re: give cmd to ct & give health to T & give health to CT
Reply With Quote #4

@Ayman get_user_health(player)
kristi is offline
Send a message via Skype™ to kristi
Ayman Khaled
Senior Member
Join Date: Mar 2017
Location: Palestine
Old 10-01-2017 , 08:09   Re: give cmd to ct & give health to T & give health to CT
Reply With Quote #5

Quote:
Originally Posted by kristi View Post
@Ayman get_user_health(player)
my bad, fixed.
__________________
Ayman Khaled is offline
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 18:35.


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