22.07.2012, 19:53
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;
}
Why?