Jump to content
  • 0

ajutor coamnda /bonus


Question

Posted

As dori sa ma ajutati cand dau /bonus sa dea automat toate licentele, mai jos este comanda bonus.

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

    SetPlayerScore(playerid, 5);
    PlayerInfo[playerid][pLevel] = 3;
    UpdateVar(playerid, "Level", 5);
    GivePlayerCash(playerid, 1, 200000000);
    GiveVehicle(playerid, 411, 0, 0, 0, 0, 0);
    SCM(playerid, COLOR_GOLD, "Server Bonus: {FF00FF}Ai primit $200,000,000, level 5, Infernus.");
    return true;
}

3 answers to this question

Recommended Posts

  • 0
Posted
On 11/24/2020 at 11:03 AM, Cosminelu said:

As dori sa ma ajutati cand dau /bonus sa dea automat toate licentele, mai jos este comanda bonus.

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

    SetPlayerScore(playerid, 5);
    PlayerInfo[playerid][pLevel] = 3;
    UpdateVar(playerid, "Level", 5);
    GivePlayerCash(playerid, 1, 200000000);
    GiveVehicle(playerid, 411, 0, 0, 0, 0, 0);
    SCM(playerid, COLOR_GOLD, "Server Bonus: {FF00FF}Ai primit $200,000,000, level 5, Infernus.");
    return true;
}

Salut, sper ca te am ajutat daca da +1 :) multumesc

YCMD:bonus(playerid, params[], help)
{
    new id, str[32];
    if(PlayerInfo[playerid][pLevel] > 1)
    return true;
    SetPlayerScore(playerid, 5);
    PlayerInfo[playerid][pLevel] = 3;
    UpdateVar(playerid, "Level", 5);
    GivePlayerCash(playerid, 1, 200000000);
    GiveVehicle(playerid, 411, 0, 0, 0, 0, 0);
    PlayerInfo[id][pGunLic] = 1;
    PlayerInfo[id][pGunLicT] = 50;
    PlayerInfo[id][pGunLicS] = 0;
    PlayerInfo[id][pBoatLic] = 1;
    PlayerInfo[id][pBoatLicT] = 50;
    PlayerInfo[id][pBoatLicS] = 0;
    PlayerInfo[id][pFlyLic] = 1;
    PlayerInfo[id][pFlyLicT] = 50;
    PlayerInfo[id][pFlyLicS] = 0;
    PlayerInfo[id][pCarLic] = 1;
    PlayerInfo[id][pCarLicT] = 50;
    PlayerInfo[id][pCarLicS] = 0;
    mysql_format(SQL,str,128,"UPDATE users SET `GunLic`='1',`GunLicT`='50', `GunLicS`='0' WHERE `ID`='%d'",PlayerInfo[id][pSQLID]);
    mysql_tquery(SQL,str, "","");
    mysql_format(SQL,str,128,"UPDATE users SET `BoatLic`='1',`BoatLicT`='50',`BoatLicS`='0' WHERE `ID`='%d'",PlayerInfo[id][pSQLID]);
    mysql_tquery(SQL,str, "","");
    mysql_format(SQL,str,128,"UPDATE users SET `FlyLic`='1',`FlyLicT`='50',`FlyLicS`='0' WHERE `ID`='%d'",PlayerInfo[id][pSQLID]);
    mysql_tquery(SQL,str, "","");
    mysql_format(SQL,str,128,"UPDATE users SET `CarLic`='1',`CarLicT`='50',`CarLicS`='0' WHERE `ID`='%d'",PlayerInfo[id][pSQLID]);
    mysql_tquery(SQL,str, "","");
    return true;
}

  • 0
Posted

ca si recomandare :

Iti recomand sa faci o variabila in mysql si gm BONUS ca la orice level sa poti da bonus dar doar o data :) pentru ca na , altii uita sa dea si rip:))

  • 0
Posted

Este usor, doar faci comanda, adaugi sa iti dea licentele si salvarea in baza de date:

 

YCMD:bonus(playerid, params[], help)
{
    new id, str[32];
    if(PlayerInfo[playerid][pLevel] > 1)
    return true;
    SetPlayerScore(playerid, 5);
    PlayerInfo[playerid][pLevel] = 3;
    UpdateVar(playerid, "Level", 5);
    GivePlayerCash(playerid, 1, 200000000);
    GiveVehicle(playerid, 411, 0, 0, 0, 0, 0);
    PlayerInfo[id][pGunLic] = 1;
    PlayerInfo[id][pGunLicT] = 50;
    PlayerInfo[id][pGunLicS] = 0;
    PlayerInfo[id][pBoatLic] = 1;
    PlayerInfo[id][pBoatLicT] = 50;
    PlayerInfo[id][pBoatLicS] = 0;
    PlayerInfo[id][pFlyLic] = 1;
    PlayerInfo[id][pFlyLicT] = 50;
    PlayerInfo[id][pFlyLicS] = 0;
    PlayerInfo[id][pCarLic] = 1;
    PlayerInfo[id][pCarLicT] = 50;
    PlayerInfo[id][pCarLicS] = 0;
    mysql_format(SQL,str,128,"UPDATE users SET `GunLic`='1',`GunLicT`='50', `GunLicS`='0' WHERE `ID`='%d'",PlayerInfo[id][pSQLID]);
    mysql_tquery(SQL,str, "","");
    mysql_format(SQL,str,128,"UPDATE users SET `BoatLic`='1',`BoatLicT`='50',`BoatLicS`='0' WHERE `ID`='%d'",PlayerInfo[id][pSQLID]);
    mysql_tquery(SQL,str, "","");
    mysql_format(SQL,str,128,"UPDATE users SET `FlyLic`='1',`FlyLicT`='50',`FlyLicS`='0' WHERE `ID`='%d'",PlayerInfo[id][pSQLID]);
    mysql_tquery(SQL,str, "","");
    mysql_format(SQL,str,128,"UPDATE users SET `CarLic`='1',`CarLicT`='50',`CarLicS`='0' WHERE `ID`='%d'",PlayerInfo[id][pSQLID]);
    mysql_tquery(SQL,str, "","");
    return true;
}

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.