script for killing info
#1

does some-one have the script that everyone can see for example --> john killed harry
so that everyone see in the corner --> playerID kind of weapon playerID
Reply
#2

pawn Код:
SendDeathMessage(playerid, killerid, reason);
that?
or like
pawn Код:
format(string, sizeof(string), "%s has killed %s with a %s", killername, playername, killerwep);
SendClientMessageToAll(0xFFFFFFFF, string);
not sure which you are talking about
Reply
#3

that i see who killed who with what

and where to put this?
Reply
#4

Quote:
Originally Posted by ndr99
that i see who killed who with what

and where to put this?
Under public OnPlayerDeath(playerid, killerid, reason)
Reply
#5

yah do this:
under OnPlayerDeath

Код:
SendDeathMessage(killerid, playerid, reason);
new string[256];
 	new name[MAX_PLAYER_NAME];
 	new dname[MAX_PLAYER_NAME];
  GetPlayerName(killerid, name, sizeof(name));
  GetPlayerName(playerid, dname, sizeof(dname));
	format(string, sizeof(string), "%s(%d) has killed %s(%d).", name,killerid, dname,playerid);
	SendClientMessageToAll(COLOR_RED, string);
and then if you want the killer 's score to go up +1 add this:
Код:
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)