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.

  • Similar Content

    • By StrypS
      YCMD:bonus(playerid, params[], help) {
          if(PlayerInfo[playerid][pLevel] > 1)
              return true;
          new string[43];
          new money = PlayerInfo[playerid][pLevel] * 500000 + random(8000000);
          new lvlbonus = PlayerInfo[playerid][pLevel] * 3 + random(5);
          new ppbonus = PlayerInfo[playerid][pLevel] * 10 + random(50);
          SetPlayerScore(playerid, lvlbonus);
          PlayerInfo[playerid][pLevel] += lvlbonus;
          UpdateVar(playerid, "Level", 3);
          PlayerInfo[playerid][pPremiumPoints] += ppbonus;
          UpdateVar(playerid, "PremiumPoints", 3);
          GivePlayerCash(playerid, 1, money);
          format(string, sizeof(string), "Server Bonus Random: Ai primit %s PremiumPoints, Level %d si %i $.", ppbonus, lvlbonus, FormatNumber(money));
          SCM(playerid, -1, string);
          return true;
      }

       
    • By Wreeper
      Salutare! Cumva cauti un server de SA:MP abia deschis pe care sa te joci cu prietenii tai?
      CAUTAREA TA A LUAT SFARSIT! ITI PREZINT: GAME-TIME ROMANIA!
      Sisteme UNICE. CAUTAM STAFF CAPABIL! Aplicatiile SE FAC PE SERVERUL DE DISCORD
      DNS: rpg.game-time.ro:7777
      IP: 51.89.23.192:7777
      PANEL: https://panel.game-time.ro/
      DISCORD: https://game-time.ro/discord/
       
      Primii 30 jucatori ce intra pe server PRIMESC MASINA DE TIP PATRIOT GRATUIT! Orice jucator ce intra primeste BONUS LEVEL 10 SI 50KK!
    • By StefanFun
      Salut! Am o problemă, când vreau să instalez SA-MP 0.3.7-R2 Windows Server ca să fac un server pur și simplu nu se descarcă nimic și se dă refresh la pagină. Fac ceva greșit? Vă rog să mă ajutați.
    • By Tudor Ionut
      Salut. Am si eu o problema la samp. Caracterul meu daca apas pe tasta f, enter, ctrl, shift da cu pumnul incontinuu. Nu pot intra in masina in casa intr un bussines nicaieri. Multumesc anticipat
    • By Rby Robert
      Am incercat sa bag un crate nou si imi da aceste erori!
      nu stiu de la ce este va rog ajutatima!
      error 025: function heading differs from prototype
  • 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.