Help How This?
#2

Replace

Код:
    new s[128];
    new pname[24];
    GetPlayerName(giveplayerid,pname,24);
    new armour = strval(tmp);
    SetPlayerArmour(giveplayerid,armour);
    if(armour < 0 || armour > 100)return SendClientMessage(playerid,COLOR_ERROR,"Armour Cant Be Less Than 0 And More Than 100");
	format(string, sizeof(string), "Server %s Has Set Your Armour To %d",AdminRanks[PlayerAdminLevel[playerid]],armour);
    SendClientMessage(giveplayerid,0xB22222AA, string);
    format(s, sizeof(s),"You Have Set %s(%d) Armour To %d", pname,giveplayerid,armour);
    SendClientMessage(giveplayerid,COLOR_RED,s);
with

Код:
    new s[128];
    new pname[24];
    GetPlayerName(giveplayerid,pname,24);
    new armour = strval(tmp);
    if(armour < 0 || armour > 100)
    {
    SendClientMessage(playerid, COLOR_ERROR, "Armour can't be less then 0 or more then 100.");
    }
    else
    {
    SetPlayerArmour(giveplayerid,armour);
	format(string, sizeof(string), "Server %s Has Set Your Armour To %d",AdminRanks[PlayerAdminLevel[playerid]],armour);
    SendClientMessage(giveplayerid,0xB22222AA, string);
    format(s, sizeof(s),"You Have Set %s(%d) Armour To %d", pname,giveplayerid,armour);
    SendClientMessage(giveplayerid,COLOR_RED,s);
    }
Reply


Messages In This Thread
Help How This? - by [Lsgw]LoL - 28.06.2011, 11:16
Re: Help How This? - by Jack Shred - 28.06.2011, 12:33

Forum Jump:


Users browsing this thread: 1 Guest(s)