16.01.2011, 04:03
pawn Код:
new cmd[128],tmp[128],tmp2[128],idx;
cmd = strtok(cmdtext,idx);
if(strcmp(cmdtext,"/ircpm")==0)
{
tmp = strtok(cmdtext,idx);
tmp2 = strtok(cmdtext,idx);
if(!strlen(tmp))return SendClientMessage(playerid,denim,"USAGE: /ircpm <EXACT IRC NAME> <MSG>");
{
if(IRC_IsUserOnChannel(gBotID[0],IRC_CHANNEL,tmp))
{
IRC_Say(gBotID[0],tmp,tmp2);
}
}
return 1;
}
My goal is to create a pm system ingame and in the irc, i have irc to server working, how can i go about doing this, i thought my approach would have worked but it hasnt.