help with a command 1st attempt
#10

Try this:

pawn Код:
if(strcmp("/heal", cmdtext, true) == 0)
    {
        if(gTeam[playerid] == TEAM_MEDIC)
        {
            SetPlayerHealth(playerid, 100);
            SendClientMessage(playerid,COLOR_YELLOW, "you have cured cured (id: )");
            return 1;
        }

        else if(gTeam[playerid] == TEAM_COP)
        {
            SendClientMessage(playerid, COLOR_YELLOW, "only medics can heal people");
            return 1;
        }

        else if(gTeam[playerid] == TEAM_CIVILIAN)
        {
            SendClientMessage(playerid, COLOR_YELLOW, "only medics can heal players");
            return 1;
        }
    }
Reply


Messages In This Thread
help with a command 1st attempt - by madmatty - 28.06.2009, 18:03
Re: help with a command 1st attempt - by Correlli - 28.06.2009, 18:06
Re: help with a command 1st attempt - by madmatty - 28.06.2009, 18:12
Re: help with a command 1st attempt - by Correlli - 28.06.2009, 18:14
Re: help with a command 1st attempt - by madmatty - 28.06.2009, 18:20
Re: help with a command 1st attempt - by pascallj - 28.06.2009, 18:26
Re: help with a command 1st attempt - by madmatty - 28.06.2009, 18:41
Re: help with a command 1st attempt - by pascallj - 28.06.2009, 18:50
Re: help with a command 1st attempt - by madmatty - 28.06.2009, 19:03
Re: help with a command 1st attempt - by MadeMan - 28.06.2009, 19:56

Forum Jump:


Users browsing this thread: 1 Guest(s)