17.05.2015, 03:51
Код HTML:
#define SetPlayerHealthEx(%0,%1) pHealth[%0] = floatround(%1); SetPlayerHealth(%0, floatround(%1)); #define SetPlayerArmourEx(%0,%1) pArmour[%0] = floatround(%1); SetPlayerArmour(%0, floatround(%1)); SetPlayerHealthEx(playerid, 75);
Код HTML:
stock SetPlayerHealthEx(playerid, Float:health) { SetPlayerHealth(playerid, health); pHealth[playerid] = health; return 1; } stock SetPlayerArmourEx(playerid, Float:armour) { SetPlayerArmour(playerid, armour); pHealth[playerid] = armour; return 1; } SetPlayerHealthEx(playerid, 75);