tog newbie create
#1

i have create a newbie chat and command /nonewbie but i can't create /togn... it's not work

new gNewbie[MAX_PLAYERS];
gNewbie[playerid] = 0; at onplayerconnect
gNewbie[playerid] = 1; at setplayerspawn
gNewbie[i] = 0; at setplayerunjail

and command

Code:
	}
	if(strcmp(cmd, "/togn", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if (!gNewbie[playerid])
			{
				gNewbie[playerid] = 1;
				SendClientMessage(playerid, COLOR_GRAD2, "   Newbie chat channel Disabled !");
			}
			else if (gNewbie[playerid])
			{
				gNewbie[playerid] = 0;
				SendClientMessage(playerid, COLOR_GRAD2, "   Newbie chat channel Enabled !");
			}
		}
		return 1;
and if you can help me with "/nmute" for mute player only on newbie
Reply
#2

This doesn't make any sense to me. Are you looking for a /nmute command which mutes all newbie[playerid] =1 players ?

If yes then add the below code under OnPlayerText

if(gNewbie[playerid] == 1)
{
SendClientMessage(playerid, COLOR_ERROR, "You are Muted. You Cannot Chat");
return 0;
}
Reply
#3

no man. "/togn" it's like "/togfam" . to can't see the chat

"/nmute" to mute one newber.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)