Command Problem
#2

pawn Код:
else if(strcmp(cmd, "/armor", true) == 0)
{
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "Введите: /sethp [id] [уровень hp]");
    new playerrr;
    new armour;
    playerrr = ReturnUser(tmp);
    tmp = strtok(cmdtext, idx);
    armor = strval(tmp);
    if(PlayerInfo[playerid][pAdmin] >= 5)
    {
        if(IsPlayerConnected(playerrr))
        {
            if(playerrr != INVALID_PLAYER_ID)
            {
                SetPlayerHealthAC(playerrr, armor);
                SetPlayerArmour(playerid, 100)
                PlayerInfo(playerrr][pHP] = armor;
                SendClientMessage(playerid, COLOR_WHITE, "Motamashis Armor Dayenda");
            }
        }
    }
}
Reply


Messages In This Thread
Command Problem - by Dezzzy - 29.11.2014, 06:56
Re: Command Problem - by AdHaM612 - 29.11.2014, 07:02
Re: Command Problem - by Dezzzy - 29.11.2014, 07:17
Re: Command Problem - by Dezzzy - 29.11.2014, 07:22
Re: Command Problem - by AdHaM612 - 29.11.2014, 07:25
Re: Command Problem - by Dezzzy - 29.11.2014, 07:31
Re: Command Problem - by AdHaM612 - 29.11.2014, 07:32
Re: Command Problem - by Dezzzy - 29.11.2014, 07:40

Forum Jump:


Users browsing this thread: 1 Guest(s)