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=125125)
Help Needed!!! -
yoan103 - 02.02.2010
Help Needed!!!
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!!! - lameguy - 02.02.2010
pawn Код:
stock PlayerName(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
return name;
}
public OnPlayerDeath(playerid, killerid, reason)
{
new string[128];
format(string, sizeof(string), "%s has killed %s.", PlayerName(playerid), PlayerName(killerid));
SendClientMessageToAll(0xFFFFFFFF, string);
return 1;
}
You could try this.