Help!
#4

pawn Код:
if(strcmp("/SetHealth", cmd, true) == 0)
{
    new tmp1[256];
    new Float:tmp2[256];

    tmp1 = strtok(cmdtext, idx);
    tmp2 = strtok(cmdtext, idx);

    new id = strval(tmp1);
    new health = FloatStr(tmp2);

    new string[250];

    SetPlayerHealth(id, health);

    GetPlayerName(id, iName, sizeof(iName));

    format(string, sizeof(string), "You've set %s (%d)'s Health to: %d.", iName, id, health);
    SendClientMessage(playerid, 0x33AA33AA, string);
    return 1;
}
Try this..
Reply


Messages In This Thread
Help! - by TheViking - 23.12.2013, 19:36
Re: Help! - by xVIP3Rx - 23.12.2013, 19:41
Re: Help! - by TheViking - 23.12.2013, 19:53
Re: Help! - by J4mmyHD - 23.12.2013, 20:05
Re: Help! - by TheViking - 23.12.2013, 20:14
Re: Help! - by J4mmyHD - 23.12.2013, 20:43

Forum Jump:


Users browsing this thread: 2 Guest(s)