02.11.2011, 13:28
How can i get that?
I have now this;
But how can i get with a code the name from the other player that killed the guy?
I have now this;
Код:
public OnPlayerDeath(playerid, killerid, reason) { new Random = random(8001); killtimer1 = SetTimerEx("killtimer2",35000,0,"d",playerid); new pname[24]; new string[130]; GivePlayerMoney(playerid,Random); GetPlayerName(playerid, pname, sizeof(pname)); format(string, sizeof(string), "[KILL] "white"%s "green"Is killed by "white"%s. "red"Cash reward: %d", pname, killerid, Random); SendClientMessageToAll(COLOR_RED, string); return 1; }