19.09.2010, 16:15
Someone know how to put the text in the main chat: "PLAYERNAME RAPED PLAYERNAME WITH WEAPON NAME" ?
If i kill someone,the text will show on chat
If i kill someone,the text will show on chat
public OnPlayerDeath(playerid, killerid, reason)
{
new string[128];
format(string,sizeof(string),"%s raped %s with %s",playerid, killerid, reason);
SendClientToAllMessage(playerid,0xFFFFFFAA,string);
return 1;
}
pawn Код:
|
public OnPlayerDeath(playerid, killerid, reason)
{
new string[128], KName[24], PName[24];
GetPlayerName(killerid, KName, 24);
GetPlayerName(playerid, PName, 24);
format(string,sizeof(string),"%s raped %s with %s",KName, PName, reason);
SendClientToAllMessage(playerid,0xFFFFFFAA,string);
return 1;
}
pawn Код:
|