AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   give cmd to ct & give health to T & give health to CT (https://forums.alliedmods.net/showthread.php?t=301662)

Azeddine 09-30-2017 15:11

give cmd to ct & give health to T & give health to CT
 
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

}

Relaxing 09-30-2017 15:48

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

register_clcmd("example", "avs");

public avs(id){
if (is_user_alive(id))
set_user_health(id, get_user_health(id) + 15);
}

Ayman Khaled 10-01-2017 00:04

Re: give cmd to ct & give health to T & give health to CT
 
Quote:

Originally Posted by Relaxing (Post 2551752)

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++



kristi 10-01-2017 07:08

Re: give cmd to ct & give health to T & give health to CT
 
@Ayman get_user_health(player)

Ayman Khaled 10-01-2017 08:09

Re: give cmd to ct & give health to T & give health to CT
 
Quote:

Originally Posted by kristi (Post 2551879)
@Ayman get_user_health(player)

my bad, fixed.


All times are GMT -4. The time now is 03:39.

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