Reason = motivo public OnPlayerDeath(playerid, killerid, reason)
{
if(reason >= 0 && reason <= 254) {
if(killerid != INVALID_PLAYER_ID) {
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 [%s]",sName,fName,gunname);
SendClientMessageToAll(0xAFAFAF00,string);
}
else {
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 se matou [%s]",fName,gunname);
SendClientMessageToAll(0xAFAFAF00, string);
}
Assinar:
Postar comentários (Atom)
0 comentários:
Postar um comentário
Nao Divugue Outros Sites