Jump to content

[PAWN] - How to SendDeathMessagetoadmins


BAWZIE
 Share

Recommended Posts

Requitments

  • SA-MP 0.3.7 (earlier version not work)

 

Code:
stock SendDeathMessageToAdmins(playerid,killerid,reason)
{
       for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
       {
              if(IsPlayerAdmin(i)) //You can change rcon admin to your enum code.
              {
                     SendDeathMessageToPlayer(i,killerid,playerid,reason);
              }
      }
      return 1;
}
public OnPlayerDeath(playerid,killerid,reason)
{
          SendDeathMessageToAdmins(killerid,playerid,reason);
          return 1;
}

 

 

 

Edited by Cdorsu
Link to comment
Share on other sites

Tura viitoare când mai faci astfel de "tutoriale", sau cum le numeşti tu.. încearcă să aşezi liniile in code

 

:topic_closed:

Edited by TheLittle
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.