09.08.2011, 01:11
ok i have pm cmd !pm from irc to server it sends it but doesnt show the txt ig
when i do !pm 0 (which was my id) hey ig it only shows [IRCPM] From User diehard: no txt
http://imageshack.us/photo/my-images/849/samp008ix.png/ thats wat it looks like
any help?
pawn Код:
IRCCMD:pm(botid, channel[], user[], host[], params[])
{
if(IRC_IsVoice(botid, channel, user))
{
new ID;
new pname[24];
new message;
GetPlayerName(ID, pname, 24);
new string[200];
if(isnull(params)) return IRC_GroupSay(gGroupID, IRC_CHANNEL, "Usage: !pm <ID> <message>");
if(!IsPlayerConnected(ID))
{
IRC_GroupSay(gGroupID, IRC_CHANNEL, "Invalid Player ID.");
return 1;
}
format(string, sizeof(string), "%s, IRCPM sent.", user);
IRC_GroupSay(gGroupID, IRC_CHANNEL,string);
format(string, sizeof(string), "[IRCPM] From User %s: %s", user, message);
SendClientMessage(ID, COLOR_BLUE, string);
return 1;
}
return 1;
}
http://imageshack.us/photo/my-images/849/samp008ix.png/ thats wat it looks like
any help?