Another problem with on player death
#1

pawn Код:
public OnPlayerDeath(playerid,killerid,reason)
{      
                if(GetPlayerVehicleID(killerid)==432)//rhino
        {
            GameTextForPlayer(killerid,"~r~~h~~h~You made a Rhino Kill~n~~w~+2 Scores~n~~g~+500$",5000,3);
            GivePlayerMoney(killerid,500);
            SetPlayerScore(killerid,GetPlayerScore(killerid)+2);
            return 1;
        }
        if(GetPlayerVehicleID(killerid)==476)//rustler
        {
            GameTextForPlayer(killerid,"~r~~h~~h~You made a Plane Kill~n~~w~+3 Scores~n~~g~+1000$",5000,3);
            GivePlayerMoney(killerid,1000);
            SetPlayerScore(killerid,GetPlayerScore(killerid)+3);
            return 1;
        }
         return 1;
}
This should detect if the killer id used rhino , but it doesn't show the text written up in the code , same for the rustler
Why?
Reply


Messages In This Thread
Another problem with on player death - by CoDeZ - 22.07.2012, 19:53
Re: Another problem with on player death - by leonardo1434 - 22.07.2012, 19:57
Re: Another problem with on player death - by [KHK]Khalid - 22.07.2012, 19:58
Re: Another problem with on player death - by CoDeZ - 22.07.2012, 20:00

Forum Jump:


Users browsing this thread: 1 Guest(s)