15.03.2009, 14:31
Is there a way to SendDeathMessage only to specific id's?
public OnPlayerDeath(playerid, killerid, reason)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerAdmin(i))
{
SendDeathMessage(killerid,playerid,reason);
}
}
return 1;
}
Originally Posted by [Fackin'
Pyro ]
Try this: pawn Код:
|
public OnPlayerDeath(playerid, killerid, reason)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerAdmin(i))
{
SendDeathMessage(killerid,playerid,reason);
}
}
}
return 1;
}
Originally Posted by [Fackin'
Pyro ]
pawn Код:
No CracK, I'm pretty sure the above code will check if anyone online is an admin and only send the message to them. |
Originally Posted by MenaceX^
So many useless replies. I know it has no sence, between the topic name to what he wrote.
He meant to SPECIFIC ID not to admins. |
Re: SendDeathMessage to admin's only?? |
Originally Posted by [Fackin'
Pyro ]
Isn't death message integrated into SA-MP now? My latest script doesn't have SendDeathMessage and they still show. So if it was integrated, what you want is pointless unless you can disable them. |