31.10.2010, 04:17
I have a question.. Imagine two players are fighting with Rustlers, and one player blows the other player with there machine guns: does it count as a kill or it is counted as the player died himself in a explosion?
OnPlayerDestroyVehicle(playerid, vehicleid)
OnPlayerShootingInVehicle(playerid, vehicleid)
no cos you cant get the id of a player that shoot the plane, ask kye/kalcor to do a callback like that then you could do that
pawn Код:
This forum requires that you wait 120 seconds between posts. Please try again in 38 seconds. |
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if ((newkeys & KEY_FIRE) && !(oldkeys & KEY_FIRE))
{
new veh = GetVehicleModel(GetPlayerVehicleID(playerid));
if (veh == 476)
{
SendClientMessage(playerid,COLOR,"Your in a Rustler and shooting.");
}
else return 0;
}
}
no im just saying that it would be cool if there was something like that,
and hmm you cant get the playerid that youre shooting at |