25.09.2016, 21:04
A Callback que vocк quer chamar й a OnPlayerGiveDamage, correto?
@EDIT
Pega o maior id online
PHP код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(uhul[i] == true)
{
static Float:vida, Float:colete;
GetPlayerHealth(damagedid, vida), GetPlayerArmour(damagedid, colete);
SetPlayerHealth(damagedid, (vida-amount)), SetPlayerArmour(damagedid, (colete-amount));
}
}
return 1;
}
Pega o maior id online