Jump to content

Recommended Posts

Posted

Hey! Am si eu nevoie de ajutor la comanda /bonus


Cum pot acorda un vehicul temporar?

Posted

Pai ar trebuii sa gandesti urmatoarele: 

- sa faci o variabila care sa ii dea la comanda bonus un timp, si la un timer sa ii scada din valoarea variabile, pana ajunge la 0, cand ajunge la 0, ii stergi vehiculul din baza de date.(asta e o idee)

  • 2 weeks later...
Posted

Cauti in gamemode cmd:bonus sau cum ai tu comanda dar in general e cmd:bonus , si dupa adaugi     GiveVehicle(playerid, 541, 0, 0, 0, 0, 0);   , 541- este id- ul masini ca sa intelegi  iti las un exemplu  

YCMD:bonus(playerid, params[], help) {
    if(PlayerInfo[playerid][pLevel] > 1) 
        return true;

    SetPlayerScore(playerid, 5);
    PlayerInfo[playerid][pLevel] = 5;
    UpdateVar(playerid, "Level", 5);
    PlayerInfo[playerid][pVoucher][2] += 2;
    save_vouchers(playerid);
    GivePlayerCash(playerid, 1, 200000000);
    GiveVehicle(playerid, 541, 0, 0, 0, 0, 0);
    SCM(playerid, COLOR_GOLD, "Server Bonus: {FFFFFF}Ai primit $200,000,000 si 2 Vouchere Legendary, level 5, Bullet.");
    return true;

 

Si vezi acolo givevehicle ca sa intelegi , daca nu ai inteles dami pm pe discord Manevra-aka-paispe#3507

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.