[Help] Death Message Fading
#3

Quote:
Originally Posted by -Prodigy-
Посмотреть сообщение
Well, you can't hide them. What you can do is send a blank message 5 times to get rid of the current death messages. If you want something like this, then give this a try:
pawn Код:
public OnPlayerDeath(..)
{
    SendDeathMessage(killerid, playerid, reason), SetTimer("cleardm", 120000, false); // You can either do it this way or set a global timer that repeats
    return 1;
}

forward cleardm();
public cleardm()
{
    for(new g = 0; g < 5; g++)
        SendDeathMessage(255, 24, 255);
    return 1;
}
Thank you for your help. Sending 5 blank messages is fine, I am not making this server for commercial use, I just want an enjoyable server to play on, so "working around the bush" is not a problem for me. My I ask you to break down this code please? Rather then copy and paste it I would like to learn what it means and how it works.
Reply


Messages In This Thread
[Help] Death Message Fading - by 0Z3ro0 - 02.11.2013, 23:21
Re: [Help] Death Message Fading - by 0Z3ro0 - 03.11.2013, 01:19
Re: [Help] Death Message Fading - by 0Z3ro0 - 03.11.2013, 01:20
Re: [Help] Death Message Fading - by Unte99 - 03.11.2013, 01:31
Re: [Help] Death Message Fading - by 0Z3ro0 - 03.11.2013, 01:38
Re: [Help] Death Message Fading - by -Prodigy- - 03.11.2013, 01:50

Forum Jump:


Users browsing this thread: 1 Guest(s)