16.07.2010, 20:17
yo, I did this code :
but nothing happens =s . I wanna that first msg :Server pvp: %s matou %s (killerid killed the playerid). For the other, %s se matou / morreu na explosгo.For the first all weapons, which I found here
http://weedarr.wikidot.com/gunlist // (reason 1 till 46) and for the /kill command / explosion, the reason 47 till end, anyone? =s
Код:
public OnPlayerDeath(playerid, killerid, reason) { ResetPlayerMoney(playerid); ResetPlayerWeapons(playerid); SendDeathMessage(killerid, playerid, reason); SendDeathMessage(playerid, reason); GivePlayerMoney(killerid, 10000); if(reason >= 1 || reason <= 46) { new string[156],pName[30],pName2[30]; GetPlayerName(playerid, pName, 30); GetPlayerName(killerid, pName2, 30); format(string,sizeof(string),"SERVER PVP: %s matou %s",pName2,pName); SendClientMessageToAll(COR_ADICIONAL, string); } else if(reason >= 47) { new string[156],pName3[30]; GetPlayerName(playerid, pName3, 30); format(string,sizeof(string),"SERVER PVP : %s se matou / morreu por explosгo", pName3); SendClientMessageToAll(COR_ADICIONAL, string); return 1; } return 1; }
http://weedarr.wikidot.com/gunlist // (reason 1 till 46) and for the /kill command / explosion, the reason 47 till end, anyone? =s