Need help with Team Chat..
#4

Woah woah woah, why is the loop in there for?

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(text[0] == '#')
    {
        new NameP[24], string[150];
        GetPlayerName(playerid, NameP, sizeof(NameP));
        switch(gTeam[playerid])
        {
            case BALLAS:
            {
                format(string, sizeof(string), "|- Ballas Radio -| (%s): %s", NameP, text[1]);
                SendBALLASMessage(GetPlayerColor(playerid), string);
                return 0;
            }
            case GROVE:
            {
                format(string, sizeof(string), "|- Grove Radio -| (%s): %s", NameP, text[1]);
                SendGROVEMessage(GetPlayerColor(playerid), string);
                return 0;
            }
            case VAGOS:
            {
                format(string, sizeof(string), "|- Vagos Radio -| (%s): %s", NameP, text[1]);
                SendVAGOSMessage(GetPlayerColor(playerid), string);
                return 0;
            }
            case AZTECA:
            {
                format(string, sizeof(string), "|- Varios Radio -| (%s): %s", NameP, text[1]);
                SendAZTECAMessage(GetPlayerColor(playerid), string);
                return 0;
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Need help with Team Chat.. - by Scrillex - 29.01.2013, 23:12
Re: Need help with Team Chat.. - by Roach_ - 29.01.2013, 23:16
Re: Need help with Team Chat.. - by Scrillex - 29.01.2013, 23:24
Re: Need help with Team Chat.. - by Threshold - 29.01.2013, 23:37
Re: Need help with Team Chat.. - by Roach_ - 29.01.2013, 23:40

Forum Jump:


Users browsing this thread: 4 Guest(s)