zcmd help
#2

pawn Code:
CMD: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, "SERVER: Invalid ID.");
    }
    else return SendClientMessage(playerid, white, "USAGE: /sethealth [ID] [AMMOUNT]");
    return 1;
}
NOTE: You need zcmd and sscanf.
Reply


Messages In This Thread
zcmd help - by zQrba. - 26.07.2012, 15:46
Re: zcmd help - by Cxnnor - 26.07.2012, 15:51
Re: zcmd help - by zQrba. - 26.07.2012, 16:17
Re: zcmd help - by zQrba. - 26.07.2012, 16:36
Re: zcmd help - by MicroD - 26.07.2012, 16:38
Re: zcmd help - by maramizo - 26.07.2012, 17:02
Re: zcmd help - by Kindred - 26.07.2012, 17:09

Forum Jump:


Users browsing this thread: 2 Guest(s)