25.08.2012, 09:14
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
new string[256];
new playercash;
new victimteam;
new Float:px,Float:py,Float:pz;
new killerteam;
new sName[MAX_PLAYER_NAME];
GetPlayerName(killerid,sName,MAX_PLAYER_NAME);
if(sName[killerid] == "")
{
}
else
{
format(string,sizeof(string),"{00ccff}» {ffffff}You have been killed by {ff6347}%s{ffffff}.",sName);
}
SendClientMessage(playerid,0xFFFFFFAA,string);
what code must be there when sName = "" to do nothing ?