Jump to content
  • 0

ajutor coamnda /bonus


Cosminelu

Question

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

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
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;
}

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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