Advertisement
Guest User

Untitled

a guest
Jun 27th, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. else if(cmd=="report")
  2.         {
  3.                 if(!text) MessagePlayer( dic + "** Use /report <player name> <reason>",player);
  4.                 else
  5.                 {       local temp = GetTok(text," ",1);
  6.                         local plr = FindPlayer(temp);
  7.             if((plr!=null) && antirepspam[player.ID]==plr.Name) MessagePlayer("[#FFFFFF]You've already reported this player!",player);
  8.             else {
  9.                         local msg = GetTok( text, " ", 2 NumTok( text, " " ) );
  10.                         if((plr) && (msg))
  11.                         {   antirepspam[player.ID] = plr.Name;
  12.                                 EchoNotice("%#BOV4", ICOL_RED + "[REPORT] > " + ICOL_PURPLE + player.Name + ICOL_RED + " submitted a report against:[ " + ICOL_PURPLE + plr.Name + ICOL_RED + " ] " + " reason: " + " [ " + msg + " ] ");
  13.                                 MessagePlayer( white + "** " + orange + " Thanks for your report, admins were notified..If not, please make a report in forum with evidence against the cheater/hacker. ", player );
  14.                                 MessageAdmins(player,msg);
  15.                                                                
  16.                                                                
  17.                      
  18.                         }  }
  19.                 }
  20.         }
  21.  
  22. function onScriptLoad()
  23. {
  24.     antirepspam <- array(GetMaxPlayers(),"");
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement