09.04.2012, 05:47
when a player in my server dies they lose $100 but i havent scripted this, however if there money is below 0 then it dosnt take away $100, this is screwing with my anit money cheat, is there any way to stop this.
public OnPlayerDeath(playerid, killerid, reason)
{
new deathskin[MAX_PLAYERS];
deathskin[playerid] = GetPlayerSkin(playerid);
dini_IntSet(file, "DeathPlayerSkin", deathskin[playerid]);
if(GetPlayerMoney(playerid)!=0) GivePlayerMoney(playerid,-100);
money[playerid]=GetPlayerMoney(playerid);
dini_IntSet(file,"PlayerMoney",money[playerid]);
return 1;
}