05.03.2013, 17:49
Hello, how to make that the Player dont get more then 95 HP?
Код:
CMD:klevar(playerid,params[]) { if(pInfo[playerid][pVipLevel] >= 2) { if(team[playerid] == TEAM_HUMAN) { new Float:armor; GetPlayerArmour(playerid,armor); if(team[playerid] == TEAM_HUMAN) { if(armor >= 95) { SendClientMessage(playerid,-1,""chat" You have enough armour to survive."); } SetPlayerArmour(playerid,armor+25); new string[18]; format(string, sizeof(string), "~w~+25 Armour"); GameTextForPlayer(playerid,string,4000,1); new str[480]; format(str,sizeof(str),""chat""COL_YELLOW" [VIP]%s used an {99FFFF}SURVIVAL PACK to get +25 ARMOUR",PlayerName(playerid)); SendClientMessageToAll(-1,str); } } } else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" [ERROR]: You are not an V.I.P!"); return 1; }