05.09.2013, 02:36
Ali no chat onde escreve e tal, eu queria um chat assim (( fulano matou fulano com a arma id tal ou a arma tal )). Mas sу aparece-se pros adm if(PlayerInfo[playerid][pAdmin] >= 1)
public OnPlayerDeath(playerid,killerid,reason)
{
new gunname[32], STRloka[64], 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(STRloka, sizeof(STRloka), "%s matou o emo %s usando %s.", sName, fName, gunname);
for(new lol; lol < MAX_PLAYERS; ++lol)
{
if(IsPlayerConnected(lol) && PlayerInfo[lol][pAdmin] >= 1)
{
SendClientMessage(lol,0xFFFFFFAA,STRloka);
}
return 1;
}
matou o Bruno_Mota usando.
Ta aparecendo assim n vem o nome do cara q matou e nem arma q usou ou o id foi mal demorar, tava sem net |
SendDeathMessage(killerid,playerid,reason);