Command /heal help
#2

pawn Код:
else
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /heal [playerid/PartOfName]");
                    return 1;
                }
            }
            if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//model
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /heal[playerid/PartOfName]");
                    return 1;
                }
                new playa;
                playa = ReturnUser(tmp);
                tmp = strtok(cmdtext, idx);
                if(IsPlayerConnected(playa))
                {
                    if(playa != INVALID_PLAYER_ID)
                    {
                        SetPlayerHealth(playa, 100);
                        GetPlayerName(playa, giveplayer, sizeof(giveplayer));
                        format(string, 256, "You Have Healed!", giveplayer,playa);
                        ABroadCast(COLOR_LIGHTRED,string, 5);
                        format(string, sizeof(string), "Medic %s Has Healed you!",sendername);
                        SendClientMessage(playa, TEAM_GROVE_COLOR, string);
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "** you are not authorized to use that command!");
                }
            }
        }
just remove a few line.
Reply


Messages In This Thread
Command /heal help - by jakejohnsonusa - 07.12.2012, 23:23
Re: Command /heal help - by Devilxz97 - 07.12.2012, 23:37

Forum Jump:


Users browsing this thread: 1 Guest(s)