14.12.2010, 20:34
I believe you should tell the killer (killerid), not the one who died.
playerid = the one who died
killerid = the one who killed someone
playerid = the one who died
killerid = the one who killed someone
pawn Код:
#include <a_samp>
public OnPlayerDeath(playerid, killerid, reason)
{
if(GetPlayerState(killerid) == 2)
{
if(!IsPlayerInAnyVehicle(killerid))
{
new name[MAX_PLAYER_NAME], string[44];
GetPlayerName(killerid, name, sizeof(name));
format(string, sizeof(string), "%s(%d) do NOT driveby",name ,killerid);
SendClientMessageToAll(0xFFC4E0AA, string);
return 1;
}
}
return 1;
}