Help Needed!!!
#1

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
Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)