help with /sethealth
#3

Quote:
Originally Posted by ZeRo_HUN
Посмотреть сообщение
Use sscanf and zcmd; They are much more easier and faster.
Agreed. Here's an example with ZCMD & sscanf:

pawn Код:
COMMAND:sethealth(playerid, params[])
{
    new user, health;
    if(!sscanf(params, "ui", user, health))
    {
        if(user != INVALID_PLAYER_ID)
        {
            SetPlayerHealth(user, health);
        }
        else return SendClientMessage(playerid, red, "Player offline.");
    }
    else return SendClientMessage(playerid, white, "/sethealth id health");
    return 1;
}
Reply


Messages In This Thread
help with /sethealth - by mrcoolballs - 22.08.2010, 15:44
Re: help with /sethealth - by ZeRo_HUN - 22.08.2010, 15:49
Re: help with /sethealth - by Sky4D - 22.08.2010, 16:35

Forum Jump:


Users browsing this thread: 1 Guest(s)