Jump to content
  • 0

Problema intrat in masini


Chuda Takahashi

Question

Buna seara/ziua

Am un prieten care are o problema la serverul lui de samp,mai exact probabil o problema din script , daca cineva din afara unei factiuni gen Taxi incearca sa dea g la el in masina il da afara pe motiv ca nu face parte din factiunea respectiva , are cineva vreo ideea ce ar putea cauza acest bug , se poate observa in poza de mai joc cum incerc sa urc intr-o masina de taxi la pasager dar imi zice ca nu sunt membru taxi si ma da afara.

sa-mp-002.png

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

hm.

 Probabil la functia OnPlayerEnterVehicle(playerid, vehicleid, ispassenger), a pus conditia daca masina respectiva este taxi si acel jucator nu este membru al Taxi LS. Incearca sa schimbe conditia si sa puna: 

if(PlayerInfo[playerid][pFaction] == 16 && GetPlayerVehicleSeat(playerid) == 0) SCM(playerid, -1, "nu esti taxi");

ceva de genul, pentru ca ma gandesc ca el a pus conditia ca oricine intra in masina, indiferent de pozitia sa, sa il dea afara. Data viitoare sa arate codul

76561198110915771.pngAddFriend.png

Link to comment
Share on other sites

  • 0

if(newcar == taxic[1] || newcar == taxic[2] || newcar == taxic[3] || newcar == taxic[4] || newcar == taxic[5] || newcar == taxic[6] || newcar == taxic[7] || newcar == taxic[8] || newcar == taxic[9] || newcar == taxic[10])
        {
            if(PlayerInfo[playerid][pMember] == 13||PlayerInfo[playerid][pLeader] == 13) { }
            else
            {
                SendClientMessage(playerid,COLOR_WHITE,"You are not a Los Santos Taxi member.");
                RemovePlayerFromVehicle(playerid);
            }
        }
        if(newcar == taxic[6] || newcar == taxic[7])
        {
            if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
            {
                if(PlayerInfo[playerid][pRank] > 2) { }
                else
                {
                    SendClientMessage(playerid,COLOR_WHITE,"You don't have rank 3.");
                    RemovePlayerFromVehicle(playerid);
                }
            }
            else
            {
                SendClientMessage(playerid,COLOR_WHITE,"You are not a Los Santos Taxi member or you don't have rank 3.");
                RemovePlayerFromVehicle(playerid);
            }
        }

 

Cred ca asta ar fii codul cu problema!?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.