How can I make people in class selection muted and unmuted when spawning?
#8

Quote:
Originally Posted by DR3AD
Посмотреть сообщение
you mean something similiar to this

Код:
new bool:PlayerMuted[MAX_PLAYERS];

public OnPlayerRequestClass(playerid, classid)
{
    if(IsPlayerConnected(playerid))
        PlayerMuted[playerid] = true;
	return 1;
}

public OnPlayerSpawn(playerid)
{
    if(IsPlayerConnected(playerid))
        PlayerMuted[playerid] = false;
	return 1;
}

public OnPlayerText(playerid, text[])
{
    if(IsPlayerConnected(playerid))
        if(PlayerMuted[playerid] == true)
            return SendClientMessage(playerid, -1, "You must spawn before you chat");
	return 1;
}
I dont know if it works.. didnt test it
It says that I have to spawn to talk but it still lets me talk.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)