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);
            }
        }
    }

 

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.