Logs - 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)
+--- Thread: Logs (
/showthread.php?tid=302381)
Logs -
omer5198 - 08.12.2011
I made logs for PM Command and more... but when i do PM it put it in PM + Commands and i want it only in PM...
How can i do it...
I tried do like this:
new cmd[256], idx;
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, "/PM", true) == 0 || strcmp(cmd, "/PrivateMessage", true) == 0)
Re: Logs -
Rob_Maate - 08.12.2011
wherever you want to log the action on the serverlog
replace the variables with your own obviously
pawn Код:
printf("PM from %s > %s: %s", sendername, giveplayer, string);
Re: Logs - T0pAz - 08.12.2011
You should try posting on the Non-English sections. And please try to elaborate.