[Ajuda]Unknown command
#3

Coloca Assim Que Nгo Vai Aparece Mais
pawn Code:
if(strcmp(cmd, "/alugarcarro", true) == 0)
    {
            if(GetPlayerVehicleID(playerid) >= 372 && GetPlayerVehicleID(playerid) <= 377)
            {
                new hirefee = HireCost(GetPlayerVehicleID(playerid));
                if (GetPlayerMoney(playerid) <  500)
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "   Vocк nгo tem dinheiro suficiente para alugar esse carro !");
                    return 1;
                }
                if(HireCar[playerid] != 299)
                {
                    gCarLock[HireCar[playerid]] = 0;
                    UnLockCar(HireCar[playerid]);
                    SendClientMessage(playerid, COLOR_GREY, "Vocк precisa desalugar seu carro/moto/barco primeiro !");
                    return 1;
                }
                for(new i=0; i<MAX_PLAYERS; i++)
                {
                    if(HireCar[i] == GetPlayerVehicleID(playerid))
                    {
                        SendClientMessage(playerid, COLOR_GREY, "    Alguйm ja alugou esse carro !");
                        return 1;
                    }
                }
                SafeGivePlayerMoney(playerid,-500);
                SBizzInfo[14][sbTill] += 500;
                ExtortionSBiz(14, SBizzInfo[14][sbEntranceCost]);
                SBizzInfo[14][sbProducts]--;
                HireCar[playerid] = GetPlayerVehicleID(playerid);
                OnPropUpdate();
                PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                format(string, sizeof(string), "~w~Nao se esqueca de ~r~/desalugarcarro~n~~g~/fechar ~w~para travar seu carro.",hirefee);
                TogglePlayerControllable(playerid, 1);
                gEngine[GetPlayerVehicleID(playerid)] = 1;
                GameTextForPlayer(playerid, string, 5000, 3);
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY,"Voce Nгo esta No Carros da empresa de aluguel!");
                    return 1;
        }
        return 0;
    }
Reply


Messages In This Thread
[Ajuda]Unknown command - by keller012 - 21.07.2010, 03:32
Re: [Ajuda]Unknown command - by Flavinho153 - 21.07.2010, 06:14
Re: [Ajuda]Unknown command - by TiagoPS - 21.07.2010, 13:22
Re: [Ajuda]Unknown command - by keller012 - 21.07.2010, 15:08
Re: [Ajuda]Unknown command - by zSuYaNw - 21.07.2010, 18:48

Forum Jump:


Users browsing this thread: 1 Guest(s)