[QUESTION/HELP] DCMD Question
#5

pawn Code:
dcmd_healme(playerid, params[])
{
    new
        id;
    if(sscanf(params, "u", id)) return SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/healme\"");
    else
    {
        SetPlayerHealth(id, 100.0);
        SendClientMessage(id, 0x00FF00AA, "You have been healed");
        return 1;
    }
}
If i understood correct that should do it.

EDIT: Just realised its a healme cmd and not healplayer durr.
Reply


Messages In This Thread
[QUESTION/HELP] DCMD Question - by Larsey123IsMe - 18.01.2011, 14:07
Re: [QUESTION/HELP] DCMD Question - by Not available - 18.01.2011, 14:11
Re: [QUESTION/HELP] DCMD Question - by damiantof7 - 18.01.2011, 14:11
Re: [QUESTION/HELP] DCMD Question - by damiantof7 - 18.01.2011, 14:13
Re: [QUESTION/HELP] DCMD Question - by iggy1 - 18.01.2011, 14:13
Re: [QUESTION/HELP] DCMD Question - by xir - 18.01.2011, 14:15
Re: [QUESTION/HELP] DCMD Question - by Alex_Valde - 18.01.2011, 14:18
Re: [QUESTION/HELP] DCMD Question - by alpha500delta - 18.01.2011, 14:23
Re: [QUESTION/HELP] DCMD Question - by Larsey123IsMe - 18.01.2011, 14:36
Re: [QUESTION/HELP] DCMD Question - by Alex_Valde - 18.01.2011, 14:47
Re: [QUESTION/HELP] DCMD Question - by Larsey123IsMe - 18.01.2011, 15:03
Re: [QUESTION/HELP] DCMD Question - by alpha500delta - 18.01.2011, 15:07
Re: [QUESTION/HELP] DCMD Question - by Larsey123IsMe - 18.01.2011, 15:09
Re: [QUESTION/HELP] DCMD Question - by JaTochNietDan - 18.01.2011, 15:14
Re: [QUESTION/HELP] DCMD Question - by Larsey123IsMe - 18.01.2011, 15:27
Re: [QUESTION/HELP] DCMD Question - by Alex_Valde - 18.01.2011, 15:30
Re: [QUESTION/HELP] DCMD Question - by Larsey123IsMe - 18.01.2011, 15:33
Re: [QUESTION/HELP] DCMD Question - by Alex_Valde - 18.01.2011, 15:37
Re: [QUESTION/HELP] DCMD Question - by Larsey123IsMe - 18.01.2011, 15:47
Re: [QUESTION/HELP] DCMD Question - by JaTochNietDan - 18.01.2011, 15:49
Re: [QUESTION/HELP] DCMD Question - by Larsey123IsMe - 18.01.2011, 15:53
Re: [QUESTION/HELP] DCMD Question - by Alex_Valde - 18.01.2011, 15:55
Re: [QUESTION/HELP] DCMD Question - by JaTochNietDan - 18.01.2011, 15:57
Re: [QUESTION/HELP] DCMD Question - by Larsey123IsMe - 18.01.2011, 16:30

Forum Jump:


Users browsing this thread: 3 Guest(s)