16.08.2011, 10:15
pawn Код:
stock
Float: gOldHealth[MAX_PLAYERS];
pawn Код:
OnPlayerHealthChange(playerid, Float: oldhealth, Float: newhealth) {
gOldHealth[playerid] = oldhealth;
}
pawn Код:
CMD:armourme(playerid, params[])
{
if(dini_Int(PFile(playerid),"VipMember")<3)return SendClientMessage(playerid, red, "You must be Premium member to use this command");
{
new
string[64],
Float: newhealth;
GetPlayerHealth(playerid, newhealth);
format(string, sizeof string, "You must be Premium member to %.0f to %.0f", gOldHealth[playerid], newhealth);
SendClientMessage(playerid, red, string);
SetPlayerArmour(playerid, 99.0);
}
return 1;
}