Allow only /login (with params!) while player is muted before spawning?
#3

Top of OnPlayerCommandText:

pawn Код:
if(MuteSpawn[playerid] == 1 && AccountInfo[playerid][Register] == 1)
    {
        if(strcmp(cmd, "/login", true) == 0)
        {
        }
        else
        {
            SendClientMessage(playerid, COLOR_YELLOW,"This account is registered - you must log in before chatting or using commands! Use /login [password].");
             return 1;
        }
    }
    // Rest of commands
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)