12.06.2011, 02:58
I suggest you study the OnPlayerDeath callback more closely.
In order to accomplish this, you'll have to take use of the killerid parameter:
In order to accomplish this, you'll have to take use of the killerid parameter:
pawn Код:
public OnPlayerDeath( playerid, killerid, reason ) {
if( GetPlayerSkin( killerid ) >= 280 && GetPlayerSkin( killerid ) <= 288 ) {
return SendClientMessage( playerid, 0xFF0000FF, "You are now a police officer!" );
}
return 1;
}