[HELP] hitman system please
#2

Under OnPlayerDeath. This might help you out.
Код:
if(PlayerInfo[killerid][Hitman]==1)
{
for(new i=0;i<MAX_PLAYERS;i++)
   {
      if(PlayerInfo[i][Hitman]==1)
       {
          new str[128],name1[128],name2[128];;
          GetPlayerName(playerid,name2,sizeof(name2));
          GetPlayerName(killerid,name1,sizeof(name1));
          format(str,sizeof(str),"Hitman %s has killed his target %s",name1,name2);
          SendClientMessage(i,-1,str);
        }
    }
}
Reply


Messages In This Thread
[HELP] hitman system please - by Luca12 - 31.05.2014, 16:18
Re: [HELP] hitman system please - by Rittik - 31.05.2014, 16:30
Re: [HELP] hitman system please - by Eth - 31.05.2014, 16:32
Re: [HELP] hitman system please - by Rittik - 31.05.2014, 16:36
Re: [HELP] hitman system please - by Luca12 - 31.05.2014, 17:17
Re: [HELP] hitman system please - by Eth - 31.05.2014, 18:41
Re: [HELP] hitman system please - by Luca12 - 31.05.2014, 19:16
Re: [HELP] hitman system please - by Eth - 31.05.2014, 19:22
Re: [HELP] hitman system please - by Luca12 - 31.05.2014, 19:28

Forum Jump:


Users browsing this thread: 1 Guest(s)