/heal another player
#1

Ok guys, this don't work:

pawn Код:
if(strcmp("/heal", cmdtext, true, 4) == 0)
    {
        if(IsPlayerAdmin(playerid))
        {
            if(!strlen(cmdtext[8])) return SendClientMessage(playerid, 0xFF0000AA, "Use: /heal [playerid]");
            new gp = strval(cmdtext[8]);
            if(!IsPlayerConnected(gp)) return SendClientMessage(playerid, 0xFF0000AA, "Invalid Playerid");
            new pn[24], an[24], str[70];
            GetPlayerName(playerid, an, 24); GetPlayerName(gp, pn, 24);
            format(str, sizeof(str), "%s is healed by admin %s", pn, an);
            SendClientMessageToAll(0xA9A9A9AA, str);
            SetPlayerHealth(playerid, 100);
            return 1;
        }
    }
Can anyone correct it
------------------------------------------------------------------------------
SOLVED in this topic
Reply


Messages In This Thread
/heal another player - by Michael@Belgium - 28.01.2011, 19:51
Re: /heal another player - by Larsey123IsMe - 28.01.2011, 20:07
Re: /heal another player - by Rock18 - 28.01.2011, 20:34
Re: /heal another player - by FreshDoubleX - 28.01.2011, 20:38
Re: /heal another player - by Michael@Belgium - 29.01.2011, 10:25
Re: /heal another player - by [CrC]reinixx - 29.01.2011, 10:31
Re: /heal another player - by Lorenc_ - 29.01.2011, 10:33
Re: /heal another player - by Michael@Belgium - 29.01.2011, 10:56
Re: /heal another player - by alpha500delta - 30.01.2011, 11:56
Re: /heal another player - by [CrC]reinixx - 01.02.2011, 16:40

Forum Jump:


Users browsing this thread: 1 Guest(s)