Getting a other player name
#1

How can i get that?


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;
}
But how can i get with a code the name from the other player that killed the guy?
Reply


Messages In This Thread
Getting a other player name - by BloodGuy - 02.11.2011, 13:28
Re: Getting a other player name - by SmiT - 02.11.2011, 13:32
Re: Getting a other player name - by BloodGuy - 02.11.2011, 13:42

Forum Jump:


Users browsing this thread: 3 Guest(s)