Jump to content

Question

Posted

salut,

Am si eu nevoie de putin ajutor, dupa ce cumpar vehicul clan, poate folosi vehiculul si jucatorii care nu fac parte din clanul respectiv.

Dupa ce dau restart la server functioneaza corect

 

Quote

new vehicleid = GetPlayerVehicleID(playerid);

if(newstate == PLAYER_STATE_DRIVER) {
        if(CarClan[vehicleid][vID] != 0) {
            if(CarClan[vehicleid][vClanID] != PlayerInfo[playerid][pClan] && CarClan[vehicleid][vClanID] != 0) {
                format(string, sizeof(string), "This vehicle is owned by the %s clan and you are not part of it.", CarClan[vehicleid][vOwner]);
                SCM(playerid, -1, string);
                SlapPlayer(playerid);
            }
            else {
                format(string, sizeof(string), "This %s (ID %d) is owned by clan %s", aVehicleNames[CarClan[vehicleid][Model]-400], vehicleid, CarClan[vehicleid][vOwner]);
                SCM(playerid, -1, string);
            }
        }
    }

 

1 answer to this question

Recommended Posts

  • 0
Posted

asta inseamna ca in momentul in care cumperi masina pentru clan, nu ii setezi variabila[id_masina] = id_clan, daca sustii ca dupa ce dai restart functioneaza, inseamna ca load-ul de incarcare a masinilor pt clan functiooneaza corect si seteaza, verifica load-ul si verifica cand cumperi masina si seteaza la fel

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.