20.07.2014, 11:05
Quote:
Yes, after a die, You will loss $100 in OnPlayerSpawn. and if your money also is less than 100 it takes it. for example if you got $78 on die, after you spawned, you'll loss it all.
|
pawn Code:
//OnPlayerDeath
pInfo[playerid][IgnoreMoneyHack] = true;
//OnPlayerSpawn
if(pInfo[playerid][IgnoreMoneyHack])
{
if(GetPlayerMoneyEx(playerid) > 100)
{
SetPlayerMoneyEx(playerid, GetPlayerMoneyEx(playerid) - 100);
}
else
{
SetPlayerMoneyEx(playerid, 0);
}
pInfo[playerid][IgnoreMoneyHack] = false;
}