OnPlayerPrivMessage Echo to irc... - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: OnPlayerPrivMessage Echo to irc... (
/showthread.php?tid=75285)
OnPlayerPrivMessage Echo to irc... -
Outbreak - 30.04.2009
How could i make a custom message function, to echo private messages to an irc channel for only ~ & % @ to see?
i want it so its like..
pawn Код:
public OnPlayerPrivmsg(playerid, recieverid, text[])
{
if(!IsPlayerConnected(playerid)||!IsPlayerConnected(recieverid)) return 1;
new string[128], ToName[24], Name[24]; GetPlayerName(playerid,Name,24);
GetPlayerName(recieverid,ToName,24);
format(string,128,"PM: %s [%d] -> %s [%d]: %s",Name,playerid,ToName,recieverid,text);
EchoPMsToAdmins(string);
return 1;
}
Im not sure how to make the EchoPMsToAdmins, how get it to recognise who is and isnt an admin in irc.