Help Needed!!! - 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: Help Needed!!! (
/showthread.php?tid=125124)
Help Needed!!! -
yoan103 - 02.02.2010
Hi guys I am trying to make a gamemode

I want to ask something. I am not such a good scripter but i want to ask you= When a player
Dies i want this to be sent to
all players like this - Someone Has killed Someone- This someone i want it to be the player's name. Like this
Example-
-Th3D3ath has killed S@mp Fr3@k
Re: Help Needed!!! -
thiaZ_ - 02.02.2010
pawn Код:
//put this under onplayerdeath
public OnPlayerDeath(playerid,killerid,reason)
{
new str[128],playersname[24],killersname[24];
GetPlayerName(playerid,playersname,24);
GetPlayerName(killerid,killersname,24);
format(str,sizeof(str),"%s has killed %s",killersname,playersname);
SendClientMessage(playerid,0xFFFFFFFF,str);
return 1;
}