How to disable /tpm and /pm?
#1

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?
Reply
#2

OnPlayerPrivMessage(senderid....)
{
return 0; instead of return 1; and dunno bout TPM
Reply
#3

pawn Код:
public OnPlayerTeamPrivateMessage(playerid, ...)
{
  return 0;
}
Reply
#4

its return 0; still enabled..
Reply
#5

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
Reply
#6

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
Reply
#7

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?
Reply
#8

Quote:
Originally Posted by MenaceX^
What are you attempting to say/do here?
sorry I am write it bad
Reply
#9

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.
Reply


Forum Jump:


Users browsing this thread: