CLOSED - 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)
+--- Thread: CLOSED (
/showthread.php?tid=588734)
CLOSED -
Rodri99 - 11.09.2015
CLOSED
Re: /q command -
saffierr - 11.09.2015
I guess that's not possible since it is something from SA-MP its self.
Re: /q command -
MBilal - 11.09.2015
Код:
public OnPlayerText(playerid, text[])
{
if(strfind(text,"/q", true) != -1 )
{
SCM(playerid,COLOR_AQUA,"You are not allowed to use /q in mainchat.");
return 0;
}
return 0;
}
This only not allow them to use /q joke on main chat.
Re: /q command -
saffierr - 11.09.2015
But that's actually not what he is asking for... but, that'd be useful tho.
Re: /q command -
jlalt - 11.09.2015
public OnPlayerText(playerid, text[])
{
if(strfind(text,"/q", true) != -1 )
{
SCM(playerid,COLOR_AQUA,"You are not allowed to use /q in mainchat.");
return 0;
}
return 0;
}
if you return OnPlayerText public 0 it will not block all messages?
wold not be like that?
PHP код:
public OnPlayerText(playerid, text[])
{
if(strfind(text,"/q", true) != -1 )
{
SCM(playerid,COLOR_AQUA,"You are not allowed to use /q in mainchat.");
return 0;
}
return 1;
}
Re: /q command -
Rodri99 - 11.09.2015
CLOSED
Re: /q command -
DarkLored - 11.09.2015
Quote:
Originally Posted by Rodri99
How to make the /q command forbidden if wroten in chat or lock it? So if player use the /q command dont get the game closed but nothing happens?
Thanks to all,
Rodri
|
It's impossible it's a client sided command, you cannot edit it.