26.11.2010, 20:19
Well, the heading say's it all.
How can I SendDeathMessage's only to admins??
How can I SendDeathMessage's only to admins??
OnPlayerDeath()
{
for(new i = 0;i<GetMaxPlayers();i++)
{
if(admin[i] > 0) // Replace with your admin variable
{
SendDeathMessage(killerid,reason,playerid);
}
}
}
OnPlayerDeath( blablabla.... )
{
for(new i; i < MAX_PLAYERS; i ++ )
{
if(IsPlayerConnected(i))
{
if(IsPlayerAdmin(i))
{
SendDeathMessage(killerid, playerid, reason);
}
}
}
return 1;
}