SA-MP Forums Archive
[HELP]/pm and /tpm - 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: [HELP]/pm and /tpm (/showthread.php?tid=84587)



[HELP]/pm and /tpm - Xeretta - 01.07.2009

I know how to disable the /pm and /tpm!
Thank you!


Re: [HELP]/pm and /tpm - refshal - 01.07.2009

Yeah, you know how to disable them? Lol, maybe you've spelled it wrong?


Re: [HELP]/pm and /tpm - Correlli - 01.07.2009



Here, have a cookie if you know how to disable it.
But in case if you spelled it wrong -> search around, there are callbacks for this in which you should return 0.


Re: [HELP]/pm and /tpm - Vince - 01.07.2009

/tpm is not in sa-mp by default (I think?), so just remove that from your script. As for the /pm command, use this:

pawn Код:
public OnPlayerPrivmsg(playerid, recieverid, text[])
{
    SendClientMessage(playerid, COLOR_YELLOW, "The PM function has been disabled");
    return 0;
}



Re: [HELP]/pm and /tpm - Correlli - 01.07.2009

Quote:
Originally Posted by Vince
/tpm is not in sa-mp by default
It is.


Re: [HELP]/pm and /tpm - Xeretta - 02.07.2009

Thanks, I already knew it was well to disable /pm, but was not sure! xD