SendDeathMessage in admin FS help
#9

Well it's because the SendDeathMessage is used twice, so the thing you can do is create a variable at the top of the script like:
pawn Код:
new Akilled[MAX_PLAYERS];
At the command /akill you set this ABOVE the setplayerhealth(playerid,0.0);
pawn Код:
Akilled[targeid] = 1;
At onplayerdeath:
pawn Код:
if(Akilled[playerid] != 1)
{
  SendDeathMessage(killerid, playerid, reason);
}
Akilled[playerid] = 0;
Reply


Messages In This Thread
SendDeathMessage in admin FS help - by YoYo123 - 09.10.2012, 08:54
Re: SendDeathMessage in admin FS help - by park4bmx - 09.10.2012, 09:01
Re: SendDeathMessage in admin FS help - by YoYo123 - 09.10.2012, 09:31
Re: SendDeathMessage in admin FS help - by park4bmx - 09.10.2012, 09:41
Re: SendDeathMessage in admin FS help - by YoYo123 - 09.10.2012, 09:57
Re: SendDeathMessage in admin FS help - by park4bmx - 09.10.2012, 10:23
Re: SendDeathMessage in admin FS help - by park4bmx - 09.10.2012, 10:53
Re: SendDeathMessage in admin FS help - by YoYo123 - 09.10.2012, 12:38
Re: SendDeathMessage in admin FS help - by Roel - 09.10.2012, 12:41
Re: SendDeathMessage in admin FS help - by YoYo123 - 09.10.2012, 14:59

Forum Jump:


Users browsing this thread: 5 Guest(s)