suicide by cop
#2

Well, not sure what causes the message for non cops, double check the skin IDs maybe? About your other problem

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
  new skin = GetPlayerSkin(playerid);
  if (reason <= 42)
    if (skin == 287 || skin == 163 || skin == 282 || skin == 255 || skin == 165) //cop and army skins
    {
      new string[128];
      new name[MAX_PLAYER_NAME];
      GetPlayerName(killerid,name,MAX_PLAYER_NAME);
      format(string, sizeof(string), "[POLICE]: %s is now wanted for killing a police officer.",name);
      SendClientMessageToAll(COLOR_LIGHTBLUE,string);
      GivePlayerMoney(killerid,500);
    }

  return 1;
}
Reply


Messages In This Thread
suicide by cop - by CJ101 - 11.03.2009, 22:48
Re: suicide by cop - by [RP]Rav - 11.03.2009, 23:18
Re: suicide by cop - by MenaceX^ - 12.03.2009, 10:47
Re: suicide by cop - by SpiderPork - 12.03.2009, 13:21

Forum Jump:


Users browsing this thread: 1 Guest(s)