02.05.2014, 10:08
hey I got a problem with this cmd its sends to irc that player had sends a pm but I don't show the message like this
[IRC PM] Killer(0):
[IRC PM] Killer(0):
pawn Код:
CMD:ircpm(playerid,params[]) {
new id, gMessage[128],Message[200],iName[MAX_PLAYER_NAME], pmName[MAX_PLAYER_NAME];
if(sscanf(params, "s", Message)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /ircpm [Message]i");
GetPlayerName(id,iName,sizeof(iName));
GetPlayerName(playerid,pmName,sizeof(pmName));
format(Message,sizeof(Message),"[IRC PM] %s(%d): %s",iName,id,gMessage);
IRC_GroupSay(gGroupID, IRC_CHANNEL, Message);
SendClientMessage(playerid,green,"Pm Sent To IRC!");
// IRC_SendRaw((botid, IRC_ADMINCHANNEL, string);
PlayerPlaySound(id,1085,0.0,0.0,0.0);
printf("PM: %s",Message);
return 1;}