[AJUDA]Carros para venda
#10

Vб no FS, procure no comando "/car"

Procure por:

pawn Код:
if(strcmp(tmp, "sell", true) == 0)
        {
            if(IsPlayerConnected(playerid))
            {
                GetPlayerName(playerid, playername, sizeof(playername));
                if(PlayerInfo[playerid][pCarKey] == 0)
                {
                    SendClientMessage(playerid, COLOR_GREY, "You don't own a car.");
                    return 1;
                }
                if(PlayerInfo[playerid][pCarKey] != 0 && strcmp(playername, CarInfo[PlayerInfo[playerid][pCarKey]][cOwner], true) == 0)
                {
                    new car = PlayerInfo[playerid][pCarKey];
                    CarInfo[car][cOwned] = 0;
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    strmid(CarInfo[car][cOwner], "Dealership", 0, strlen("Dealership"), 999);
                    GivePlayerMoney(playerid,CarInfo[car][cValue]);
                    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                    format(string, sizeof(string), "~w~You have sold your car for: ~n~~g~$%d", CarInfo[car][cValue]);
                    GameTextForPlayer(playerid, string, 10000, 3);
                    RemovePlayerFromVehicle(playerid);
                    TogglePlayerControllable(playerid, 1);
                    PlayerInfo[playerid][pCarKey] = 999;
                    return 1;
                }
            }
            return 1;
        }
Troque por:

pawn Код:
if(strcmp(tmp, "sell", true) == 0)
        {
            if(IsPlayerConnected(playerid))
            {
                GetPlayerName(playerid, playername, sizeof(playername));
                if(PlayerInfo[playerid][pCarKey] == 0)
                {
                    SendClientMessage(playerid, COLOR_GREY, "You don't own a car.");
                    return 1;
                }
                if(PlayerInfo[playerid][pCarKey] != 0 && strcmp(playername, CarInfo[PlayerInfo[playerid][pCarKey]][cOwner], true) == 0)
                {
                    new car = PlayerInfo[playerid][pCarKey];
                    CarInfo[car][cOwned] = 0;
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    strmid(CarInfo[car][cOwner], "Dealership", 0, strlen("Dealership"), 999);
                    GivePlayerMoney(playerid,CarInfo[car][cValue]);
                    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                    format(string, sizeof(string), "~w~You have sold your car for: ~n~~g~$%d", CarInfo[car][cValue]);
                    GameTextForPlayer(playerid, string, 10000, 3);
                    RemovePlayerFromVehicle(playerid);
                    TogglePlayerControllable(playerid, 1);
                    PlayerInfo[playerid][pCarKey] = 0;
                    return 1;
                }
            }
            return 1;
        }
Reply


Messages In This Thread
[AJUDA]Carros para venda - by wforest - 20.10.2010, 20:25
Re: [AJUDA]Carros para venda - by oakley - 20.10.2010, 20:56
Re: [AJUDA]Carros para venda - by [BEP]AcerPilot - 20.10.2010, 21:17
Re: [AJUDA]Carros para venda - by wforest - 20.10.2010, 22:13
Re: [AJUDA]Carros para venda - by insanity_hol - 20.10.2010, 22:33
Re: [AJUDA]Carros para venda - by []Fabricio[] - 20.10.2010, 23:10
Re: [AJUDA]Carros para venda - by wforest - 20.10.2010, 23:41
Re: [AJUDA]Carros para venda - by []Fabricio[] - 21.10.2010, 00:11
Re: [AJUDA]Carros para venda - by wforest - 21.10.2010, 00:19
Re: [AJUDA]Carros para venda - by []Fabricio[] - 21.10.2010, 00:29

Forum Jump:


Users browsing this thread: 2 Guest(s)