Heal all
#4

pawn Код:
CMD:healall(playerid, params[]) //Create a command (you need ZCMD/y_commands to do this thing)
{
    for(new i = 0; i < GetMaxPlayers(); i++) //Looping to all players
    {
        if(IsPlayerConnected(i)) //Check if player are connected
        {
            SetPlayerHealth(i, 100); //Set player health to 100
        }
    }
    return 1;
}
Reply


Messages In This Thread
Heal all - by aCloudy - 26.06.2014, 07:33
Re: Heal all - by kirostar - 26.06.2014, 07:35
Re: Heal all - by ]Rafaellos[ - 26.06.2014, 07:36
Re: Heal all - by RenovanZ - 26.06.2014, 07:37
Re: Heal all - by aCloudy - 26.06.2014, 07:38
Re: Heal all - by kirostar - 26.06.2014, 07:47
Re: Heal all - by AIped - 26.06.2014, 07:49
Re: Heal all - by ]Rafaellos[ - 26.06.2014, 09:12
Re: Heal all - by AIped - 26.06.2014, 11:04

Forum Jump:


Users browsing this thread: 1 Guest(s)