script for killing info
#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


Messages In This Thread
script for killing info - by ndr99 - 14.02.2009, 20:15
Re: script for killing info - by Daren_Jacobson - 14.02.2009, 20:19
Re: script for killing info - by ndr99 - 14.02.2009, 20:30
Re: script for killing info - by SilentMouse - 14.02.2009, 20:32
Re: script for killing info - by StrickenKid - 14.02.2009, 21:36

Forum Jump:


Users browsing this thread: 5 Guest(s)