[CODE] on death - help please
#1

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.
Reply
#2

Do you have GivePlayerMoney code onplayerdeath or do you have filterscript that makes your money lose OnPlayerDeath
Reply
#3

no I do not
Reply
#4

Show us codes so I can see the problem.. OnPlayerDeath...
Reply
#5

public OnPlayerDeath(playerid, killerid, reason)
{
new deathskin[MAX_PLAYERS];
deathskin[playerid] = GetPlayerSkin(playerid);
dini_IntSet(file, "DeathPlayerSkin", deathskin[playerid]);
return 1;
}
Reply
#6

pawn Код:
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;
}
Reply
#7

Guys, GTA San Andreas automatically takes $100 on death, just add GivePlayerMoney(playerid, 100); @ OnPlayerDeath and you're fine
Reply
#8

okay cool thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)