A few things ...
#3

@2@
Use:
Код:
if (strcmp("/help", cmdtext, true) == 0)
    {
        if (gTeam[playerid] == POLICE)
        {
             for(new i=0; i<MAX_PLAYERS; i++)
            if(gTeam[i] == POLICE)
            {
                     format(string, sizeof(string), "%s (%d) needs help ! You can find him on the map !"GetPlayerName(playerid), playerid);
                      SendClientMessage(i,COLOR_RED, string);
             }
            else if(gTeam[playerid] == TERRORIST)
             {
             for(new i=0; i<MAX_PLAYERS; i++)
            if(gTeam[i] == TERRORIST)
            {
                     format(string, sizeof(string), "%s (%d) needs help ! You can find him on the map !"GetPlayerName(playerid), playerid);
                      SendClientMessage(i,COLOR_RED, string);
             }
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED, "You are not a cop or a terrorist so you can't use this cmd !");
        }
        return 1;
    }
I propably left some unclosed bracers or something, but it's very late in poland and im sleepy. If theres something wrong in there, please fix it for me.
Reply


Messages In This Thread
A few things ... - by Michael@Belgium - 03.02.2011, 19:59
Re: A few things ... - by randomkid88 - 03.02.2011, 20:11
Re: A few things ... - by sekol - 03.02.2011, 20:13
Re: A few things ... - by [L3th4l] - 03.02.2011, 20:14
Re: A few things ... - by Hal - 03.02.2011, 20:18
Re: A few things ... - by Michael@Belgium - 03.02.2011, 20:33
Re: A few things ... - by Michael@Belgium - 04.02.2011, 16:23
Re: A few things ... - by MrDeath537 - 04.02.2011, 17:34

Forum Jump:


Users browsing this thread: 1 Guest(s)