15.01.2013, 23:59
Ae alguem sabe olha o print ae me ajudem
new Float:pHealth[MAX_PLAYERS]; new Float:pArmour[MAX_PLAYERS];
static Float:health, Float:armour; GetPlayerHealth(playerid, health); GetPlayerArmour(playerid, armour); if(pArmour[playerid] > armour) { new obj = CreateObject(1242, 0, 0, 0, 0, 0, 0); AttachObjectToPlayer(obj, playerid, 0, 0, 1.5, 0, 0 , 0); SetTimerEx("DestroyObjectEx", 200, false, "i", obj); PlayerPlaySound(playerid, 17805, 0, 0, 0); } if(pHealth[playerid] > health) { new obj = CreateObject(1240, 0, 0, 0, 0, 0, 0); AttachObjectToPlayer(obj, playerid, 0, 0, 1.5, 0, 0 , 0); SetTimerEx("DestroyObjectEx", 200, false, "i", obj); PlayerPlaySound(playerid, 17805, 0, 0, 0); } pHealth[playerid] = health; pArmour[playerid] = armour;
no topo
Код:
new Float:pHealth[MAX_PLAYERS]; new Float:pArmour[MAX_PLAYERS]; Код:
static Float:health, Float:armour; GetPlayerHealth(playerid, health); GetPlayerArmour(playerid, armour); if(pArmour[playerid] > armour) { new obj = CreateObject(1242, 0, 0, 0, 0, 0, 0); AttachObjectToPlayer(obj, playerid, 0, 0, 1.5, 0, 0 , 0); SetTimerEx("DestroyObjectEx", 200, false, "i", obj); PlayerPlaySound(playerid, 17805, 0, 0, 0); } if(pHealth[playerid] > health) { new obj = CreateObject(1240, 0, 0, 0, 0, 0, 0); AttachObjectToPlayer(obj, playerid, 0, 0, 1.5, 0, 0 , 0); SetTimerEx("DestroyObjectEx", 200, false, "i", obj); PlayerPlaySound(playerid, 17805, 0, 0, 0); } pHealth[playerid] = health; pArmour[playerid] = armour; |