How to block de command "/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: How to block de command "/tpm" (
/showthread.php?tid=64807)
How to block de command "/tpm" -
Mac_Rulez - 07.02.2009
I need block the command, /tpm pls help!
Re: How to block de command "/tpm" -
Masj - 07.02.2009
forward OnPlayerTeamPrivmsg(playerid, text[]);
public OnPlayerTeamPrivmsg(playerid, text[])
{
return false; // Disables it.
}
Just put this on you script
Re: How to block de command "/tpm" -
Marcel - 07.02.2009
Or just remove the command...
Re: How to block de command "/tpm" -
Brunez - 07.02.2009
At the top of the script:
pawn Код:
forward OnPlayerTeamPrivmsg(playerid,msg[]);
Anywhere under the first thing after any forward/new
pawn Код:
public OnPlayerTeamPrivmsg(playerid,msg[])
{
return 0;
}