SA-MP Forums Archive
[HELP]How Do I Clear the Death Window ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP]How Do I Clear the Death Window ? (/showthread.php?tid=315703)



[HELP]How Do I Clear the Death Window ? - Devilxz97 - 04.02.2012

i cant find it ! i want it coz that help me when someone die i can clear the death wndow
plss someone help me . .


Re: [HELP]How Do I Clear the Death Window ? - Ballu Miaa - 04.02.2012

You dont want SendDeathMessage right?
So check your OnPlayerDeath public callback. Check the line for SendDeathMessage. Delete it!

EDIT: My bad , you can do it by a Loop!


Re: [HELP]How Do I Clear the Death Window ? - riezman97 - 12.02.2012

Quote:
Originally Posted by Ballu Miaa
Посмотреть сообщение
You dont want SendDeathMessage right?
So check your OnPlayerDeath public callback. Check the line for SendDeathMessage. Delete it!
He means that if he do /clearkill the death message is going to be cleared/empty. No kills/deaths until someone does it.

I myself couldn't figure this out.


Re: [HELP]How Do I Clear the Death Window ? - 2KY - 12.02.2012

Try using a loop inside of your command and doing this, not sure..

pawn Код:
for ( new num; num > 20; num++ )
{
    SendDeathMessage(INVALID_PLAYER_ID, INVALID_PLAYER_ID, 255);
}



Re: [HELP]How Do I Clear the Death Window ? - deffo - 23.12.2012

Quote:
Originally Posted by 2KY
Посмотреть сообщение
Try using a loop inside of your command and doing this, not sure..

pawn Код:
for ( new num; num > 20; num++ )
{
    SendDeathMessage(INVALID_PLAYER_ID, INVALID_PLAYER_ID, 255);
}
It did not work, i just tried, I wanted to do same thing, clearing up the death window.

btw your loop is wrong , it should be for(new num=0;num<20;num++)

Anyways, it didn't work.

Looks like this ain't possible.


Re: [HELP]How Do I Clear the Death Window ? - Lordzy - 23.12.2012

I hope this does:
pawn Код:
CMD:clearkills(playerid, params[])
{
 for(new i; i< 20; i++)
 {
  SendDeathMessage(INVALID_PLAYER_ID, INVALID_PLAYER_ID, 255);
 }
 return 1;
}



Re: [HELP]How Do I Clear the Death Window ? - deffo - 23.12.2012

You did the same thing what he did, I don't see any difference, SendDeathMessage(INVALID_PLAYER_ID, INVALID_PLAYER_ID, 255); does not do anything.
Doesn't even show any error, when I will I do /clearkills, the command works fine, but nothing happens to death window.


Re: [HELP]How Do I Clear the Death Window ? - Gh05t_ - 23.12.2012

Quote:
Originally Posted by deffo
Посмотреть сообщение
You did the same thing what he did, I don't see any difference
Quote:
Originally Posted by Slice
blind leading the blind
Here's some good ******: https://sampforum.blast.hk/showthread.php?tid=350959


Re: [HELP]How Do I Clear the Death Window ? - deffo - 23.12.2012

Figured it out!
I was doing this,
pawn Код:
SendDeathMessage(INVALID_PLAYER_ID, INVALID_PLAYER_ID, 255);
INVALID_PLAYER_ID is a integer, it needed to be 1 , 2 or 500! Now it worked like this, when I changed to integer,

pawn Код:
SendDeathMessage(6000, 5005, 255);
in place of 255 , you can write 1 or 2, doesn't matter, ID should be invalid and should be integer.


Thanks all, fixed!