27.09.2013, 00:00
Perdon en el apuro de contestar por falta de tiempo hize el codigo demasiado bosquejado.
Aqui un codigo funcional:
Aqui un codigo funcional:
pawn Код:
#include <a_samp>
enum E_PLAYER_DATA
{
//...
Float:pHealth,
//...
}
new pData[MAX_PLAYERS][E_PLAYER_DATA];
stock custom_SetPlayerHealth(playerid, Float:health)
{
pData[playerid][pHealth] = health;
SetPlayerHealth(playerid, health);
}
#if defined ALS_SetPlayerHealth
#undef ALS_SetPlayerHealth
#endif
#define SetPlayerHealth custom_SetPlayerHealth
#define ALS_SetPlayerHealth
public OnPlayerSpawn(playerid)
{
SetPlayerHealth(playerid, 100);
return 0;
}