is it possible?
#1

is it possible to remove the death message box and when someone get killed it show up for a little time?
Reply
#2

Yes, you can create a timer, which resets the deathlist after some specified time.


pawn Код:
forward ResetDeathMessages();
public ResetDeathMessages()
{
    new name = 1000;
new reason = 1000;
    SendDeathMessage(name, name, reason);
  SendDeathMessage(name, name, reason);
  SendDeathMessage(name, name, reason);
  SendDeathMessage(name, name, reason);
  SendDeathMessage(name, name, reason);
  SendDeathMessage(name, name, reason);
  SendDeathMessage(name, name, reason);
  SendDeathMessage(name, name, reason);
}
and

pawn Код:
public OnPlayerDeath(playerid, killeridm, reason)
{
    SendDeathMessage(killerid, playerid, reason);
    SetTimer("ResetDeathMessages", 8000, 0);
}

Reply
#3

it works Thnx man i saw something like that on call of duty multiplayer
Reply
#4

No Problem, its my pleasure to help
Reply
#5

ok do you now also how to show the player ids in the chat box?
Reply
#6

yes, i'll create script for you in 5 minutes.
I'll post it here.
Reply
#7

thnx man
Reply
#8

Ok, here it is:

pawn Код:
public OnPlayerText(playerid, text[])
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
   
    new string[256];
    format(string, sizeof(string), "%s(%d): %s", name, playerid, text[0]);

    SendClientMessageToAll(0xFFFFFFFF, string);
    return 0;
}
Enjoy!
Reply
#9

it works men but is it possible to have white text after the name? i have added getplayercolor
Reply
#10

I'll look if i find a way to do it, but tomorrow. So just wait a little.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)