Read Please - 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: Read Please (
/showthread.php?tid=249038)
Read Please -
Monster[HD] - 16.04.2011
ok well i need help for this ok i got this thing if u die or something it sends a message to all that u got killed by ?
See look
Код:
new string[128], NameKiller[MAX_PLAYER_NAME];
GetPlayerName(killerid,NameKiller,sizeof(NameKiller));
format (string,sizeof(string),"%s (%d) killed %s (%d)",NameKiller,killerid,NameVictim,playerid);
SendClientMessageToAll(COLOR_YELLOW, string);
Re: Read Please -
Tee - 16.04.2011
What do you want to do?
Re: Read Please -
Ironboy500[TW] - 16.04.2011
Код:
new string[128], NameKiller[MAX_PLAYER_NAME], NameVictim[MAX_PLAYER_NAME];
GetPlayerName(killerid,NameKiller,sizeof(NameKiller));
GetPlayerName(playerid, NameVictim, MAX_PLAYER_NAME);
format (string,sizeof(string),"%s (%d) killed %s (%d)",NameKiller,killerid,NameVictim,playerid);
SendClientMessageToAll(COLOR_YELLOW, string);
Add that under your OnPlayerDeath.