17.12.2013, 21:06
At the top of your script, right after all the #include 's add:
Then under OnPlayerTakeDamage add:
Now, if OnPlayerTakeDamage isn't in your GM:
1. Locate the OnPlayerDeath callback.
2. Right above it add:
3. Then add an empty line between: the line with a "}" (from the code above) and the OnPlayerDeath callback. Note that this isn't needed, but is good for neat code.
4. Add the code I gave you for the never-die system.
pawn Код:
#define INFINITY (Float:0x7F800000)
pawn Код:
//Code will go here...
SetPlayerHealth(pid, INFINITY);
//return 1;
1. Locate the OnPlayerDeath callback.
2. Right above it add:
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
//Code will go here soon enough...
return 1
}
4. Add the code I gave you for the never-die system.