How to block de command "/tpm"
#1

I need block the command, /tpm pls help!
Reply
#2

forward OnPlayerTeamPrivmsg(playerid, text[]);
public OnPlayerTeamPrivmsg(playerid, text[])
{
return false; // Disables it.
}

Just put this on you script
Reply
#3

Or just remove the command...
Reply
#4

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)