Problem
#5

Here it is:

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new playercash;
    if(killerid == INVALID_PLAYER_ID) {
        SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
        ResetPlayerMoney(playerid);
    } else {
            SendDeathMessage(killerid,playerid,reason);
            SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
            playercash = GetPlayerMoney(playerid);
            if (playercash > 0)  {
                GivePlayerMoney(killerid, playercash);
                ResetPlayerMoney(playerid);
            }
            else
            {
            }
        }
    return 1;
}
Reply


Messages In This Thread
Problem - by TheNuttyScientist - 29.07.2010, 22:10
Re: Problem - by mastasquizy - 29.07.2010, 22:11
Re: Problem - by WillyP - 29.07.2010, 22:12
Re: Problem - by mastasquizy - 29.07.2010, 22:14
Re: Problem - by TheNuttyScientist - 29.07.2010, 22:21
Re: Problem - by mastasquizy - 29.07.2010, 23:01

Forum Jump:


Users browsing this thread: 1 Guest(s)