Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function onPlayerCommand(player,cmd,text)
  2. {
  3.     if(cmd=="report")
  4.     {
  5.         if(!text) MessagePlayer("crai",player);
  6.         else
  7.         {   local temp = GetTok(text," ");
  8.             local plr = FindPlayer(temp[0]);
  9.             local msg = temp.slice(temp[0].len()+1);
  10.             if((plr) && (msg))
  11.             {
  12.                 EchoNotice("%#BOV4","[REPORT]"+player.Name+": Reported["+plr.Name+"] for: ["+msg+"]");
  13.                 MessageAdmins(player,msg);
  14.             }
  15.         }
  16.     }
  17. }
  18. function MessageAdmins(player,msg)
  19. {
  20.     local m = GetMaxPlayers();
  21.     for(local i=0;i<m;i++)
  22.     {
  23.         local plr = FindPlayer(i);
  24.         if((plr) && GetLevel(plr)>2)
  25.         {
  26.             MessagePlayer( "[REPORT]"+player.Name+": Reported["+plr.Name+"] for: ["+msg+"]");
  27.         }
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement