How to disable /tpm and /pm? - 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 disable /tpm and /pm? (
/showthread.php?tid=73510)
How to disable /tpm and /pm? -
Shellegg - 15.04.2009
How to disable /tpm and /pm on gamemodes?
I think that /tpm and /pm are "default" commands of sa-mp
So how to disable this?
Re: How to disable /tpm and /pm? -
Think - 15.04.2009
OnPlayerPrivMessage(senderid....)
{
return 0; instead of return 1; and dunno bout TPM
Re: How to disable /tpm and /pm? -
ICECOLDKILLAK8 - 15.04.2009
pawn Код:
public OnPlayerTeamPrivateMessage(playerid, ...)
{
return 0;
}
Re: How to disable /tpm and /pm? -
Shellegg - 15.04.2009
its return 0; still enabled..
Re: How to disable /tpm and /pm? -
basker - 15.04.2009
try The Search Bottem In The left coner i have Seen this Topic many times
Heres some Examples
Link
Other Link
Other Other Link
try out some of Them
Mabey you Find some you can use
Re: How to disable /tpm and /pm? -
Angel_Sierra - 15.06.2009
this is /tpm
pawn Код:
public OnPlayerTeamPrivmsg(playerid, text[])
{
return 0;
}
this is /pm
pawn Код:
public OnPlayerPrivmsg(playerid, recieverid, text[])
{
return 0;
}
If this funtion have "return 1;" its allowed (/tpm or /pm)
change it to return 0;
Search this funtions in your GM.
if you don't find it... copy the code and paste it in your GM
Re: How to disable /tpm and /pm? -
MenaceX^ - 15.06.2009
Quote:
Originally Posted by Angel_Sierra
public OnPlayerPrivmsg(playerid, recieverid, text[])
{
return 0;
}
public OnPlayerPrivmsg(playerid, recieverid, text[])
{
return 0;
}
|
What are you attempting to say/do here?
Re: How to disable /tpm and /pm? -
Angel_Sierra - 15.06.2009
Quote:
Originally Posted by MenaceX^
What are you attempting to say/do here?
|
sorry I am write it bad
Re: How to disable /tpm and /pm? -
MenaceX^ - 15.06.2009
OnPlayerTeamPrivmsg(playerid, text[]) is actually being missed from the header, so if you don't have it on your gamemode, you can simply drop the public in your mode, and add the forward to the a_samp include.