public OnPlayerDeath(playerid, killerid, reason){ new string[500], weaponname[500];GetWeaponName(reason,weaponname,sizeof(weaponname));format(string,sizeof(string),\"{%06x}%s (%d) {\"feher\"}megölte {%06x}%s (%d) {\"feher\"}játékost. Fegyver: %s\",GetPlayerColor(killerid) >>> 8,GetName(killerid),killerid,GetPlayerColor(playerid) >>> 8,GetName(playerid),playerid,weaponname);SendClientMessageToAll(-1,string);return 1;}
public OnPlayerDeath(playerid, killerid, reason){ new string[500], weaponname[500]; GetWeaponName(reason,weaponname,sizeof(weaponname)); format(string,sizeof(string),\"{%06x}%s (%d) {\"feher\"}megölte {%06x}%s (%d) {\"feher\"}játékost. Fegyver: %s\",GetPlayerColor(killerid) >>> 8,GetName(killerid),killerid,GetPlayerColor(playerid)>>>8,GetName(playerid),playerid,weaponname); SendClientMessageToAll(-1,string);if(reason == 53) { SendClientMessage(playerid, -1, \"Leestél, pech\"); return 1; } return 1;}
public OnPlayerDeath(playerid, killerid, reason){ new string[500], weaponname[500];if(killerid){GetWeaponName(reason,weaponname,sizeof(weaponname));format(string,sizeof(string),\"{%06x}%s (%d) {\"feher\"}megölte {%06x}%s (%d) {\"feher\"}játékost. Fegyver: %s\",GetPlayerColor(killerid) >>> 8,GetName(killerid),killerid,GetPlayerColor(playerid) >>> 8,GetName(playerid),playerid,weaponname);SendClientMessageToAll(-1,string);} else {format(string,sizeof(string),\"%s (%d) {\"feher\"}meghalt!\",GetName(playerid),playerid);SendClientMessageToAll(-1,string);}return 1;}
new string[500], weaponname[500]; if(reason != 47 || reason != 49 || reason != 50 || reason != 51 || reason != 53 || reason != 54) {GetWeaponName(reason,weaponname,sizeof(weaponname));format(string,sizeof(string),\"{%06x}%s (%d) {\"feher\"}megölte {%06x}%s (%d) {\"feher\"}játékost. Fegyver: %s\",GetPlayerColor(killerid) >>> 8,GetName(killerid),killerid,GetPlayerColor(playerid)>>>8,GetName(playerid),playerid,weaponname);SendClientMessageToAll(-1,string);}if(reason == 47){format(string,sizeof(string),\"{%06x}%s (%d) {\"feher\"}meghalt. Indok: Fake Pistol\",GetPlayerColor(playerid) >>> 8,GetName(playerid),playerid);SendClientMessageToAll(-1,string);}if(reason == 50){format(string,sizeof(string),\"{%06x}%s (%d) {\"feher\"}meghalt. Indok: Helicopter Blades\",GetPlayerColor(playerid) >>> 8,GetName(playerid),playerid);SendClientMessageToAll(-1,string);}if(reason == 51){format(string,sizeof(string),\"{%06x}%s (%d) {\"feher\"}meghalt. Indok: Explosion\",GetPlayerColor(playerid) >>> 8,GetName(playerid),playerid);SendClientMessageToAll(-1,string);}if(reason == 53){format(string,sizeof(string),\"{%06x}%s (%d) {\"feher\"}meghalt. Indok: Drowned\",GetPlayerColor(playerid) >>> 8,GetName(playerid),playerid);SendClientMessageToAll(-1,string);}if(reason == 54){format(string,sizeof(string),\"{%06x}%s (%d) {\"feher\"}meghalt. Indok: Splat\",GetPlayerColor(playerid) >>> 8,GetName(playerid),playerid);SendClientMessageToAll(-1,string);}
#include <a_samp>public OnPlayerDeath(playerid, killerid, reason){new string[256];switch(reason){ case 47: format(string,sizeof(string),\"{%06x}%s (%d) {FFFFFF}meghalt. Indok: ASD\",GetPlayerColor(playerid)>>>8,GetName(playerid),playerid); case 50: format(string,sizeof(string),\"{%06x}%s (%d) {FFFFFF}meghalt. Indok: ASD\",GetPlayerColor(playerid)>>>8,GetName(playerid),playerid); case 51: format(string,sizeof(string),\"{%06x}%s (%d) {FFFFFF}meghalt. Indok: ASD\",GetPlayerColor(playerid)>>>8,GetName(playerid),playerid); case 52: format(string,sizeof(string),\"{%06x}%s (%d) {FFFFFF}meghalt. Indok: ASD\",GetPlayerColor(playerid)>>>8,GetName(playerid),playerid); case 53: format(string,sizeof(string),\"{%06x}%s (%d) {FFFFFF}meghalt. Indok: ASD\",GetPlayerColor(playerid)>>>8,GetName(playerid),playerid); case 54: format(string,sizeof(string),\"{%06x}%s (%d) {FFFFFF}meghalt. Indok: KÉTASD\",GetPlayerColor(playerid)>>>8,GetName(playerid),playerid); default:{ if(IsPlayerConnected(killerid)) // CSAK BIZTOSRA AKAROK MENNI { new weaponname[50]; GetWeaponName(reason,weaponname,sizeof(weaponname)); format(string,sizeof(string),\"{%06x}%s (%d) {FFFFFF}megölte {%06x}%s (%d) {FFFFFF}játékost. Fegyver: %s\",GetPlayerColor(killerid) >>> 8,GetName(killerid),killerid,GetPlayerColor(playerid)>>>8,GetName(playerid),playerid,weaponname); } else format(string,sizeof(string),\"{%06x}%s (%d) {FFFFFF}meghalt.\",GetPlayerColor(playerid)>>>8,GetName(playerid),playerid);}}SendClientMessageToAll(-1,string);return 1;}stock GetName(playerid){new name[MAX_PLAYER_NAME];GetPlayerName(playerid,name,MAX_PLAYER_NAME);return name;}