Help with this command!
#1

Well firstly i got this command from samp wiki
pawn Код:
dcmd_heal(playerid, params[])
{
    new id;
    if (sscanf(params, "u", id)) SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/heal <playerid>\"");
    else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "Player not found");
    else
    {
        SetPlayerHealth(id, 100.0);
        SendClientMessage(id, 0x00FF00AA, "You have been healed");
        SendClientMessage(playerid, 0x00FF00AA, "Player healed");
    }
    return 1;
}
I want to make this command work if you are in the medics team..
I'm using gteam for this!
Reply


Messages In This Thread
Help with this command! - by Lorenc_ - 23.01.2010, 08:37
Re: Help with this command! - by llama - 23.01.2010, 08:41
Re: Help with this command! - by Lorenc_ - 23.01.2010, 08:44
Re: Help with this command! - by llama - 23.01.2010, 08:53
Re: Help with this command! - by Lorenc_ - 23.01.2010, 09:00
Re: Help with this command! - by llama - 23.01.2010, 09:10

Forum Jump:


Users browsing this thread: 2 Guest(s)