29.11.2014, 07:02
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");
}
}
}
}