Medical Bill broken
#2

Make a check if killerid isn't equal to INVALID_PLAYER_ID:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if( killerid != INVALID_PLAYER_ID )
    {
        PVar[ killerid ][ pKills ] += 1;
    }
    PVar[ playerid ][ pDeaths ] += 1;
    GivePlayerMoney( playerid, -2500 );
    return 1;
}
Reply


Messages In This Thread
Medical Bill broken - by manchestera - 15.10.2011, 09:46
Re: Medical Bill broken - by SmiT - 15.10.2011, 10:00
Re: Medical Bill broken - by bw_ - 15.10.2011, 10:07

Forum Jump:


Users browsing this thread: 1 Guest(s)