[HELP] /aheal command !
#10

Here it is something might work for ya
pawn Код:
if (strcmp("/aheal", cmdtext, true, 6) == 0)
        {
        if(!IsPlayerAdmin(playerid))return 1;
        SendClientMessage(playerid, COLOR_GOLD, "You Are Not A Admin, You can't use this command");

        new cmd[128], tmp[128], idx;
        new string[128];
        cmd = strtok(cmdtext, idx);

        tmp = strtok(cmdtext, idx);

        if(strlen(tmp) == 0) return SendClientMessage(playerid, COLOR_GOLD, "Usage: /aheal[player id]");
        new playeree = strval(tmp);
        if(!IsPlayerConnected(playeree)) return SendClientMessage(playerid, COLOR_GOLD, "Player is not connected.");


        new playername[MAX_PLAYER_NAME], adminname[MAX_PLAYER_NAME];
        GetPlayerName(playeree, playername, MAX_PLAYER_NAME);
        GetPlayerName(playerid, adminname, MAX_PLAYER_NAME);
       
        format(string, sizeof(string), "Admin %s Has Healed %s", adminname, playername);
        SendClientMessageToAll(COLOR_GOLD, string);
       
        SetPlayerHealth(playeree, 100);
        return 1;
        }
Reply


Messages In This Thread
[HELP] /aheal command ! - by [Aka]Dragonu - 03.12.2010, 20:21
Re: [HELP] /aheal command ! - by gychem - 03.12.2010, 20:23
Re: [HELP] /aheal command ! - by [Aka]Dragonu - 03.12.2010, 20:27
Re: [HELP] /aheal command ! - by gychem - 03.12.2010, 20:40
Re: [HELP] /aheal command ! - by [Aka]Dragonu - 03.12.2010, 20:52
Re: [HELP] /aheal command ! - by [Aka]Dragonu - 04.12.2010, 07:02
Re: [HELP] /aheal command ! - by Ash. - 04.12.2010, 07:08
Re: [HELP] /aheal command ! - by [Aka]Dragonu - 04.12.2010, 07:46
Re: [HELP] /aheal command ! - by fangoth1 - 04.12.2010, 10:12
Re: [HELP] /aheal command ! - by fangoth1 - 04.12.2010, 10:25

Forum Jump:


Users browsing this thread: 1 Guest(s)