Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. IRCCMD:pm(botid, channel[], user[], host[], params[])
  2. {
  3.         new msg[256],lolz1[256], lolz2[256], pon;
  4.         if(sscanf3(params,"ds",pon,msg)) return IRC_GroupSay(gGroupID,channel,"3Usage: !pm <PlayerName/PlayerID> <Message>");
  5.         if(!IsPlayerConnected(pon)) return IRC_GroupSay(gGroupID,channel,"4*** Error: Invalid player ID.");
  6.         format(lolz1,256, "*** PM from %s (IRC): %s",user, msg);
  7.         format(lolz2,256, "5*** PM to %s (ID:%d):1 %s",PlayerNameIRC(pon),pon,msg);
  8.         SendClientMessage(pon,green,lolz1);
  9.         IRC_GroupSay(gGroupID, channel, lolz2);
  10.         return 1;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement