22.11.2013, 10:15
Quote:
PT agora as veZES ta funfando as vezes nгo, a maioria das vezes continua o mesmo bug, mas as vezes sai lб qm matou e a arma certinho, pq isso?
|
pawn Код:
public OnPlayerDeath(playerid,killerid,reason)
{
switch(reason)
case 47, 49, 50, 51, 53, 54: return 1;
new gunname[32], string[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(string, sizeof(string), "%s matou %s com a %s.", sName, fName, gunname);
SendClientMessageToAll(0xFFFFFFAA,string);
return 1;
}