Jump to content

Scripting /bonus


NizaNNN

Recommended Posts

Acum am rezolvat aia cu symbol si sunt puse in ordine lea compliat fara nici o problema dar ! comanda /bonus tot nu functioneaza ! o scriu dar nu imi da nimic

oare o poti edita sa fie pe auto ? sa dea autamat dupa ce ai inceput jocul ? 

adica a inceput dupa vreo 3 sec sa iti dea automat fara sa mai scri nimic daca se poate daca nu va multumesc orcum !

Link to comment
Share on other sites

UITEEEEEEEEEEEEEEEEEEEEEEEEEee +1

Spoiler

CMD:bonus(playerid,params[])
{
    new str[128];
    if(PlayerInfo[playerid][pLevel] != 1) return SCM(playerid, -1, "Nu poti folosi aceasta comanda daca ai level 2+");
    if(IsPlayerConnected(playerid))
    {
        if(IsPlayerInRangeOfPoint(playerid, 5.0, 1729.5890,-1912.3743,13.5630))
            {
            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
            GivePlayerCash(playerid, 6000000);
            PlayerInfo[playerid][pLevel] = 2;
            PlayerInfo[playerid][pPremiumPoints] = 600;
            PlayerInfo[playerid][pCarLic] = 1;
            PlayerInfo[playerid][pCarLicT] = 2;
            PlayerInfo[playerid][pFlyLic] = 1;
            PlayerInfo[playerid][pFlyLicT] = 20;
            PlayerInfo[playerid][pBoatLic] = 1;
            PlayerInfo[playerid][pBoatLicT] = 20;
             PlayerInfo[playerid][pGunLic] = 1;
            PlayerInfo[playerid][pGunLicT] = 20;
              Update(playerid, pCashx);
                Update(playerid, pLevelx);
            Update(playerid, pPremiumPointsx);
            format(str,128,"UPDATE users SET `CarLic`='1',`CarLicT`='20',`FlyLic`='1',`FlyLicT`='20',`BoatLic`='1',`BoatLicT`='20',`GunLic`='1',`GunLicT`='20' WHERE `ID`='%d'",PlayerInfo[playerid][pSQLID]);
            mysql_query(SQL,str);
             ShowPlayerDialog(playerid, 3354, DIALOG_STYLE_MSGBOX, "{ffffff}Server Bonus {ffffff}| {00FFFF}SunKen RPG{ffffff} |", "{ffffff}Ai folosit comanda {00FFFF}/bonus{ffffff} si ai primit:\n {00FFFF}-{ffffff} Level {00FFFF}3\n -{ffffff} 6.000.000{33cc33}$\n {00FFFF}-{ffffff} 600 Premium {ffff00}Points\n Si 2 Ore Licentele!","{ffffff}Multumesc","");
        }
    }
    return 1;
}

 

  • Thanks 1

COMUNITATEA MEA DE RESURSE
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spacer.png
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
www.codeup.ro / www.codeup.ro/forum

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
Reply to this topic...

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