View Single Post
Old 10/07/2010, 06:39 PM   #4
[TDM]Relax
Big Clucker
 
Join Date: Oct 2009
Location: CA, LA
Posts: 76
Reputation: 0
Default Re: как понять кто убил и того кого убили?

в OnPlayerDeath( playerid, killerid, reason)
добавь
new dstring[128], name[MAX_PLAYER_NAME], killer[MAX_PLAYER_NAME];
if (killerid != INVALID_PLAYER_ID)
{
GetPlayerName(killerid, killer, sizeof(killer));
GetPlayerName(playerid, name, sizeof(name));
format(dstring,sizeof(dstring),".:: Вы убили %s ::.", name);
SendClientMessage(killerid, 0xAA3333AA, dstring);
format(dstring,sizeof(dstring),".:: Вас убил %s ::.", killer);
SendClientMessage(name, 0xAA3333AA, dstring);
}
__________________
[TDM]Relax is offline   Reply With Quote