killed by vehicle - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: killed by vehicle (
/showthread.php?tid=485558)
killed by vehicle -
ScRipTeRi - 04.01.2014
hello guys,
i want to make for my server when i get killed form Sea Sparrow system send message to you "you kill %s with Sea sparrow"
Thank you.
Re: killed by vehicle -
Konstantinos - 04.01.2014
When you kill a player with Seasparrow, it shows the M4 in the death list if I'm not mistaken.
So check if the reason is 31 and the killerid is driver in Seasparrow (447 modelid) and show the message.
Re: killed by vehicle -
ScRipTeRi - 04.01.2014
i don't have any idea how to make it so can you make this script for me ?
Re: killed by vehicle -
Konstantinos - 04.01.2014
It was well explained and you could do that yourself (don't be lazy
![Smiley](images/smilies/smile.png)
)
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(reason == 31 && GetPlayerState(killerid) == PLAYER_STATE_DRIVER && GetVehicleModel(GetPlayerVehicleID(killerid)) == 447)
{
// code..
}
return 1;
}
Re: killed by vehicle -
ScRipTeRi - 04.01.2014
yeah it works thanks so much.
REP +