Unknown command *Help please*
#7

Quote:
Originally Posted by ►☺◄©ookie►☺◄
pawn Код:
if(strcmp(cmd, "/tplant", true) == 0)
    {
        if(gTeam[playerid] == TEAM_USA)
        {
        new tanker = GetClosestPlayer(playerid);
        if(GetDistanceBetweenPlayers(playerid,tanker) <= 5)
            {
                if(gTeam[tanker] == TEAM_USA)
                {
                SendClientMessage(playerid, COLOR_GREY, "You cannot plant a bomb in your teammates tank!");
                  return 1;
                }
                new tank = GetPlayerVehicleID(playerid);
                if(GetVehicleModel(tank) == 432)
                {
                    SetVehicleHealth(tank, 100.0);
                    return 1;
                }
            }
            else
            {
              SendClientMessage(playerid, COLOR_GREY, "No enemy tank spotted!");
                return 1;
            }
        }
        else if(gTeam[playerid] == TEAM_GERMANY)
        {
            new tanker = GetClosestPlayer(playerid);
            if(GetDistanceBetweenPlayers(playerid,tanker) <= 5)
            {
                if(gTeam[tanker] == TEAM_GERMANY)
                {
                SendClientMessage(playerid, COLOR_GREY, "You cannot plant a bomb in your teammates tank!");
                return 1;
            }
              new tank = GetPlayerVehicleID(playerid);
              if(GetVehicleModel(tank) == 432)
              {
                SetVehicleHealth(tank, 0.0);
                    return 1;
            }
            else
            {
              SendClientMessage(playerid, COLOR_GREY, "No enemy tank spotted!");
                    return 1;
            }
            }
            return 1;
        }
        return 1;
    }
still dosnt work...
Reply


Messages In This Thread
Unknown command *Help please* - by Yoyoyo - 31.08.2009, 01:56
Re: OMG <!> <!> Unknown command <!> <!> OMG - by Yoyoyo - 31.08.2009, 14:09
Re: OMG <!> <!> Unknown command <!> <!> OMG - by Mr_Finnigan - 31.08.2009, 14:15
Re: OMG <!> <!> Unknown command <!> <!> OMG - by mirkoiz - 31.08.2009, 14:21
Re: OMG <!> <!> Unknown command <!> <!> OMG - by Yoyoyo - 31.08.2009, 14:30
Re: OMG <!> <!> Unknown command <!> <!> OMG - by James_Alex - 31.08.2009, 14:31
Re: OMG <!> <!> Unknown command <!> <!> OMG - by Yoyoyo - 31.08.2009, 14:33
Re: Unknown command *Help please* - by Yoyoyo - 31.08.2009, 17:47
Re: Unknown command *Help please* - by Yoyoyo - 31.08.2009, 20:42

Forum Jump:


Users browsing this thread: 2 Guest(s)