pls help, the other func is not working
#1

Код:
public OnPlayerText(playerid, text[])
{
    //Mute Player//
    if(Mute[playerid] == 1)
    {
        return 0;
    }
     if(Mute[playerid] == 0)
    {
     return 1;
    }
    new pName[MAX_PLAYER_NAME], string[128];
    GetPlayerName(playerid, pName, sizeof(pName));

  	if(text[0] == '!')
    {
    format(string, sizeof(string), "[TeamChat] "COL_WHITE"%s: "COL_GREEN"(%i) %s", pName, playerid, text[1]);
    printf("%s", string);
    for(new i=0,b=GetMaxPlayers();i<b;i++)
    {
            if(gTeam[i] == gTeam[playerid]) SendClientMessage(i, GetPlayerColor(playerid), string);
        }
    return 0;
	}
    format(string, sizeof(string), "(%i) %s",playerid, text);
    SendPlayerMessageToAll(playerid, string);
    return 0;
}
mute is work
but Team chat is not working

what should i do, pls help
Reply


Messages In This Thread
pls help, the other func is not working - by handerson - 09.07.2011, 04:17
Re: pls help, the other func is not working - by Bakr - 09.07.2011, 04:19
Re: pls help, the other func is not working - by handerson - 09.07.2011, 04:22
Re: pls help, the other func is not working - by Bakr - 09.07.2011, 04:24
Re: pls help, the other func is not working - by handerson - 09.07.2011, 04:28
Re: pls help, the other func is not working - by Bakr - 09.07.2011, 04:34

Forum Jump:


Users browsing this thread: 1 Guest(s)