CLOSED
#1

CLOSED
Reply
#2

I guess that's not possible since it is something from SA-MP its self.
Reply
#3

Код:
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.
Reply
#4

But that's actually not what he is asking for... but, that'd be useful tho.
Reply
#5

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

CLOSED
Reply
#7

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


Forum Jump:


Users browsing this thread: