Basic Question Here:
#7

I suggest you study the OnPlayerDeath callback more closely.

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;
}
Reply


Messages In This Thread
Basic Question Here: - by Alex_Obando - 12.06.2011, 01:56
Re: Basic Question Here: - by [L3th4l] - 12.06.2011, 02:01
Respuesta: Basic Question Here: - by Alex_Obando - 12.06.2011, 02:11
Re: Basic Question Here: - by Tee - 12.06.2011, 02:20
Re: Basic Question Here: - by Bakr - 12.06.2011, 02:35
Respuesta: Basic Question Here: - by Alex_Obando - 12.06.2011, 02:53
Re: Basic Question Here: - by Bakr - 12.06.2011, 02:58
Respuesta: Basic Question Here: - by Alex_Obando - 12.06.2011, 03:01
Re: Basic Question Here: - by Bakr - 12.06.2011, 03:07
Re: Basic Question Here: - by Tee - 12.06.2011, 03:28

Forum Jump:


Users browsing this thread: 1 Guest(s)