is it possible? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: is it possible? (
/showthread.php?tid=120466)
is it possible? -
GangMember211 - 11.01.2010
is it possible to remove the death message box and when someone get killed it show up for a little time?
Re: is it possible? - lameguy - 11.01.2010
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);
}
Re: is it possible? -
GangMember211 - 11.01.2010
it works Thnx man i saw something like that on call of duty multiplayer
Re: is it possible? - lameguy - 11.01.2010
No Problem, its my pleasure to help
Re: is it possible? -
GangMember211 - 11.01.2010
ok do you now also how to show the player ids in the chat box?
Re: is it possible? - lameguy - 11.01.2010
yes, i'll create script for you in 5 minutes.
I'll post it here.
Re: is it possible? -
GangMember211 - 11.01.2010
thnx man
Re: is it possible? - lameguy - 11.01.2010
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!
Re: is it possible? -
GangMember211 - 11.01.2010
it works men but is it possible to have white text after the name? i have added getplayercolor
Re: is it possible? - lameguy - 11.01.2010
I'll look if i find a way to do it, but tomorrow. So just wait a little.