[HELP]How Do I Clear the Death Window ?
#1

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

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!
Reply
#3

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.
Reply
#4

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);
}
Reply
#5

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.
Reply
#6

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

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.
Reply
#8

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
Reply
#9

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)