Jump to content

Recommended Posts

Posted
32 minutes ago, xVincenzo said:

salut, am si eu nevoie de acest doua comenzi va rog!

cum ai facut si ce erori ai ?

YouTube : Click

Discord : CosminAK47#8524

Posted
6 minutes ago, xVincenzo said:

chestia e ca n-am facut ca nu ma lasa creieru meu sec sa o gandesc (ps: is la inceput)

ok, te ajut in acest caz, ce doresti sa faca acele comenzi ?

YouTube : Click

Discord : CosminAK47#8524

Posted
1 minute ago, CosminAK47 said:

ok, te ajut in acest caz, ce doresti sa faca acele comenzi ?

ti am dat add pe discord sunt reflex, vreau sa pun langa spawn practic , deci cand da /getbike sa ia o bicicleta de la spawn si dupa cand nu mai are nevoie de ea sa se despawneze si sa foloseasca /despawnbike

  • 1 month later...
  • 1 year later...
Posted

CMD:getbike(playerid, params[]) {

    if (!IsPlayerConnected(playerid)) return 0;

 

    new Float:x, Float:y, Float:z, Float:angle;

    x = 123.45;

    y = 67.89;

    z = 3.0;

    angle = 0.0;

 

    new vehicleid = CreateVehicle(481, x, y, z, angle, -1, -1, 10000);

    if (vehicleid != INVALID_VEHICLE_ID) {

        PutPlayerInVehicle(playerid, vehicleid, 0);

        SendClientMessage(playerid, COLOR_GREEN, "You've received a bike.");

    } else {

        SendClientMessage(playerid, COLOR_RED, "Failed to spawn the bike.");

    }

 

    return 1;

}

 

CMD:despawnbike(playerid, params[]) {

    if (!IsPlayerConnected(playerid)) return 0;

 

    new vehicleid = GetPlayerVehicleID(playerid);

    if (vehicleid != INVALID_VEHICLE_ID) {

        DestroyVehicle(vehicleid);

        SendClientMessage(playerid, COLOR_GREEN, "Your bike has been despawned.");

    } else {

        SendClientMessage(playerid, COLOR_RED, "You don't have a bike to despawn.");

    }

 

    return 1;

}

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
×
×
  • 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.