OnPlayerText problem
#2

PHP код:
public OnPlayerText(playeridtext[])
{
    if(
chattoggled[playerid] == TRUE)
    {
        return 
0;
    }
    else
    {
        return 
0;
    }

or you could just do this though.

and I'll just fix one command you'll get the rest
PHP код:
CMD:disablechat(playerid)
{
    if(
PlayerInfo[playerid][Admin] < 6) return SendClientMessage(playerid0xFF0000AA"You're not authorized to use that command!");
    if(
chattoggled[playerid] == true)
    {
        
chattoggled[playerid] = false;
        
SendClientMessageToAll(0x00FFFFFF"AdmCmd: An administrator has disabled the chat");
    }
    else 
SendClientMessage(playerid0xFFFF00FF"Chat is already disabled");
    return 
1;

Reply


Messages In This Thread
OnPlayerText problem - by NealPeteros - 02.01.2018, 08:35
Re: OnPlayerText problem - by JesterlJoker - 02.01.2018, 08:40
Re: OnPlayerText problem - by JaKe Elite - 02.01.2018, 08:47

Forum Jump:


Users browsing this thread: 1 Guest(s)