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