12.04.2015, 22:59
so i use this code that it will tell all player if someone was killed by the other player..
and i tested it..but when i died by jumping off the cliff.. the message appear :%s has been killed by %s with
how to make it when i died by jumping off the cliff or drowing not by killed by other player.. the message appeared Example: Player 1 died... HELP ME!
Code:
public OnPlayerDeath(playerid, killerid, reason) { new gunname[32],string[145],fName[MAX_PLAYER_NAME],sName[MAX_PLAYER_NAME]; GetWeaponName(reason,gunname,sizeof gunname); GetPlayerName(playerid,fName,MAX_PLAYER_NAME); GetPlayerName(killerid,sName,MAX_PLAYER_NAME); format(string,sizeof string,"%s has been killed by %s with %s",fName,sName,gunname); SendClientMessageToAll(COLOR_RED,string); GameTextForPlayer(playerid, "~r~Wasted", 5000, 6); SendDeathMessage(killerid, playerid, reason); }
how to make it when i died by jumping off the cliff or drowing not by killed by other player.. the message appeared Example: Player 1 died... HELP ME!