Quote:
Originally Posted by KinderClans
What i mean is this:
pawn Код:
new IsPlayerDead[MAX_PLAYERS];
OnPlayerDeath:
pawn Код:
IsPlayerDead[playerid] = 1;
Then, always on OnPlayerDeath:
pawn Код:
if(IsPlayerDead[playerid] == 1) ( new Float:healtht; GetPlayerHealthEx(playerid, healtht); if(healtht <= 0) { GivePlayerCash(playerid, -5); SendClientMessage(playerid, COLOR_ORANGE, "Paramedics saved you for 5 dollars."); KillTimer(deatht[playerid]); } )
To avoid send the message when a player joins.
|
When i compile i give no errors but the .amx is empty.