/aheal cmd
#2

pawn Код:
CMD:aheal(playerid, params[])
{
    new targetid, Float:health, targetname[MAX_PLAYER_NAME], adminname[MAX_PLAYER_NAME], string[70], string2[70];
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "Vous n'йtes pas admin.");
    if(sscanf(params,"ui", targetid, health)) return SendClientMessage(playerid, COLOR_RED, "** [Utilisation]: /aheal [playerid/PartOfName]");
    if(targetid == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, "Invalid player ID!");
    SetPlayerHealth(targetid, health);
    GetPlayerName(targetid, targetname, sizeof(targetname));
    GetPlayerName(playerid, adminname, sizeof(adminname));
    format(string, sizeof(string), "L'admin %s a soignй le joueur %s.", targetname, targetid, health);
    SendClientMessage(playerid,COLOR_WHITE,string);
    format(string2, sizeof(string2), "%s has set your health to %d.", adminname, health);
    return SendClientMessage(targetid,COLOR_WHITE,string2);
}
Reply


Messages In This Thread
[SOLVED] /aheal cmd - by Garwan50 - 24.07.2013, 13:08
Re: /aheal cmd - by SsHady - 24.07.2013, 13:46
Re : /aheal cmd - by Garwan50 - 24.07.2013, 14:43
Re: /aheal cmd - by SsHady - 24.07.2013, 14:49
Re : /aheal cmd - by Garwan50 - 24.07.2013, 20:30
Re : /aheal cmd - by Garwan50 - 24.07.2013, 20:52
Re: /aheal cmd - by PT - 24.07.2013, 21:02

Forum Jump:


Users browsing this thread: 2 Guest(s)