Jump to content

KiNGzOR

Membru
  • Posts

    57
  • Joined

  • Last visited

Posts posted by KiNGzOR

  1. 1 hour ago, nobilzeusAdv said:

    trebuie sa faci ceva gen, 

    new PlayerDuel[MAX_PLAYERS];

     

    //cmd de duel;

    PlayerDuel[playerid]  = id player;

     

    si in dialog pui new userid = PlayerDuel[playerid];

    Am facut asa,insa acum este un bug. Daca pun suma,acum chiar daca o are zice ca nu o are.

    Edit: Te rog ajuta-ma!

  2. Spoiler

    Salut SA-MP.ro! Astazi am o problema la o verificare. Am lucrat la un sistem de duel si din pacate nu merge aceasta verificare din dialog,o sa las dialogul mai jos.

    Despre ce este vorba: Odata ce pune suma,daca nu are suma el merge,insa daca jucatorul pe care a dat /duel si pune suma chiar daca nu are banii,ii merge.

    Dupa cum vedeti in dialogul de mai jos am facut sa-i zica,insa nu-i zice,dar daca el nu are banii ii zice,insa la jucatorul pe care a dat /duel nu-i zice. Va rog ajutati-ma

     

    case DIALOG_DUEL_BET:
            {
                 if(!response) return resetDuel(playerid);
                 else
                 {
                    new userid;
                    if(!IsNumeric(inputtext)) return ShowPlayerDialog(playerid, DIALOG_DUEL_BET, DIALOG_STYLE_INPUT, "Duel System [Bet]", "Scrie suma pe care vrei sa o pariezi.\n(Suma poate fii intre $1 si $1,000,000", "Bet", "");
                    if(strval(inputtext) < 1 || strval(inputtext) > 1000000) return ShowPlayerDialog(playerid, DIALOG_DUEL_BET, DIALOG_STYLE_INPUT, "Duel System [Bet]", "Scrie suma pe care vrei sa o pariezi.\n(Suma poate fii intre $1 si $1,000,000", "Bet", "");
                    if(GetPlayerMoney(playerid) < strval(inputtext)) return ShowPlayerDialog(playerid, DIALOG_DUEL_BET, DIALOG_STYLE_INPUT, "Duel System [Bet]", "Nu detii suma pe care ai introdus-o.\nScrie suma pe care vrei sa o pariezi.\n(Suma poate fii intre $1 si $1,000,000", "Bet", "");
                    if(GetPlayerMoney(userid) < strval(inputtext)) return ShowPlayerDialog(playerid, DIALOG_DUEL_BET, DIALOG_STYLE_INPUT, "Duel System [Bet]", "Jucatorul nu are suma de bani pe care ai introdus-o.\nScrie suma pe care vrei sa o pariezi.\n(Suma poate fii intre $1 si $1,000,000", "Bet", "");
                    DuelBet[playerid] = strval(inputtext);
                    ShowPlayerDialog(playerid, DIALOG_DUEL_WEAPON, DIALOG_STYLE_LIST, "Duel System [Weapon Select]",
                        "Desert Eagle\nM4\nShotgun\nMP5\nSniper", "Select", "");
                 }

            }

  3. On 12/20/2018 at 8:37 AM, rObY. said:
    • Money $1,672,254 / $55,961,397
    • Premium No, 93 rubies
    • Playing hours 30.7079
    • Level 11
    • 2 masini personale: Banshee (VIP, nu se afla in dealership - a fost castigata la quest-ul anterior) & Cheetah.
    • 6 sloturi vehicule personale
    • Casa small in LS, langa PNS-ul central
    • Extra: MP3, PremiumPoints, Hidden-uri, Stickere vehicul & Premium Skins.

    # Astept oferte.

    Mai este disponibil? Daca da,add discord Mos.KiNGZoR#4862

  4. Fratilor stiti de ce cand aleg de exemplu /addhouse 0 sau /addhouse 1 sau /addhouse 2,zice ca e unknown command,insa alea sunt asa : 0 - small,1 - medium,2 - big.

    Poza:

    https://imgur.com/a/36VnvVG

    Comanda:

    CMD:addhouse(playerid, params[])
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] >= 7)
            {
                    new ivInt,Float:IntPos[3], inter,Float:pX,Float:pY,Float:pZ,string[128],PropertyString[256],query[500], text, sendername[25];
                    if(sscanf(params, "i",text)) return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}Usage: {FFFFFF}/addhouse <Size - 0/1/2> 0 = small, 1 = medium, 2 = big");
                    if(text >= 3) return SendClientMessage(playerid, COLOR_ERROR, "Unknown Size");
                    GetPlayerPos(playerid, pX, pY, pZ);
                    SetPVarFloat(playerid, "pHeX", pX);
                    SetPVarFloat(playerid, "pHeY", pY);
                    SetPVarFloat(playerid, "pHeZ", pZ);
                    if(text == 0)
                    {
                        ivInt = random(5);
                        if(ivInt == 0)IntPos[0] = 223.20, IntPos[1] = 1287.08, IntPos[2] = 1082.14, inter = 1;
                        else if(ivInt == 1)IntPos[0] = 2283.04, IntPos[1] = -1140.28, IntPos[2] = 1050.90, inter = 11;
                        else if(ivInt == 2)IntPos[0] = 446.90, IntPos[1] = 506.35, IntPos[2] = 1001.42, inter = 12;
                        else if(ivInt == 3)IntPos[0] = 328.05, IntPos[1] = 1477.73, IntPos[2] = 1084.44, inter = 15;
                        else if(ivInt == 4)IntPos[0] = 223.20, IntPos[1] = 1287.08, IntPos[2] = 1082.14, inter = 1;
                        else if(ivInt == 5)IntPos[0] = -42.59, IntPos[1] = 1405.47, IntPos[2] = 1084.43, inter = 8;
                    }
                    else if(text == 1)
                    {
                        ivInt = random(5)+6;
                        if(ivInt == 6)IntPos[0] = 235.34, IntPos[1] = 1186.68, IntPos[2] = 1080.26, inter = 3;
                        else if(ivInt == 7)IntPos[0] = 24.04, IntPos[1] = 1340.17, IntPos[2] = 1084.38, inter = 10;
                        else if(ivInt == 8)IntPos[0] = -283.44, IntPos[1] = 1470.93, IntPos[2] = 1084.38, inter = 15;
                        else if(ivInt == 9)IntPos[0] = -260.49, IntPos[1] = 1456.75, IntPos[2] = 1084.37, inter = 4;
                        else if(ivInt == 10)IntPos[0] = 377.15, IntPos[1] = 1417.41, IntPos[2] = 1081.33, inter = 15;
                    }
                    else if(text == 2)
                    {
                        ivInt = random(5)+11;
                        if(ivInt == 11)IntPos[0] = 2324.53, IntPos[1] = -1149.54, IntPos[2] = 1050.71, inter = 12;
                        else if(ivInt == 12)IntPos[0] = 1260.64, IntPos[1] = -785.37, IntPos[2] = 1091.91, inter = 5;
                        else if(ivInt == 13)IntPos[0] = 140.17, IntPos[1] = 1366.07, IntPos[2] = 1083.65, inter = 5;
                        else if(ivInt == 14)IntPos[0] = 234.19, IntPos[1] = 1063.73, IntPos[2] = 1084.21, inter = 6;
                        else if(ivInt == 15)IntPos[0] = 225.68, IntPos[1] = 1021.45, IntPos[2] = 1084.02, inter = 7;
                        else if(ivInt == 16)IntPos[0] = 226.30, IntPos[1] = 1114.24, IntPos[2] = 1080.99, inter = 5;
                    }

                    new i = housess+1;
                    mysql_format(SQL, query, sizeof(query), "INSERT INTO houses (Owner, Lockk, Hel, Arm, Level, Rentabil, Rent, Owned, Discription, Value, Takings) VALUES('AdmBot', '0', '0', '0', '10', '1', '500', '0', 'House', '10000000', '0')");
                    mysql_tquery(SQL, query, "", "");

                    HouseInfo[hID]                           = i;
                    HouseInfo[hEntrancex]                    = GetPVarFloat(playerid, "pHeX");
                    HouseInfo[hEntrancey]                    = GetPVarFloat(playerid, "pHeY");
                    HouseInfo[hEntrancez]                    = GetPVarFloat(playerid, "pHeZ");
                    HouseInfo[hExitx]                        = IntPos[0];
                    HouseInfo[hExity]                        = IntPos[1];
                    HouseInfo[hExitz]                        = IntPos[2];
                    format(HouseInfo[hOwner], 64, "AdmBot");
                    format(HouseInfo[hDiscription], 64, "House");
                    HouseInfo[hValue]                        = 100000000;
                    HouseInfo[hHel]                          = 0;
                    HouseInfo[hInterior]                     = inter;
                    HouseInfo[hLock]                         = 0;
                    HouseInfo[hOwned]                        = 0;
                    HouseInfo[hRent]                         = 500;
                    HouseInfo[hRentabil]                     = 1;
                    HouseInfo[hTakings]                      = 0;
                    HouseInfo[hLevel]                        = 10;
                    HouseInfo[hVirtual]                      = housess+1;

                    mysql_format(SQL, query, sizeof(query), "UPDATE `houses` SET `Entrancex`='%f',`Entrancey`='%f',`Entrancez`='%f',`Exitx`='%f',`Exity`='%f',`Exitz`='%f',`Interior`='%d',`Virtual`='%d',`Value`='%d',`Level`='%d' WHERE `ID`='%d'",HouseInfo[hEntrancex],HouseInfo[hEntrancey],HouseInfo[hEntrancez],HouseInfo[hExitx],HouseInfo[hExity],HouseInfo[hExitz],HouseInfo[hInterior],HouseInfo[hVirtual],HouseInfo[hValue],HouseInfo[hLevel],i);
                    mysql_tquery(SQL,query,"","");

                    DestroyDynamic3DTextLabel(HouseLabel);
                    format(PropertyString, sizeof(PropertyString),"{FFFFFF}House {FF0000}%d \n{FF0000}This house is for sale(/buyhouse) ! \n{FFFFFF}Description: {FF0000}%s \n{FFFFFF}Price: {FF0000}$%s \n{FFFFFF}Level: {FF0000}%d",i,HouseInfo[hDiscription],FormatNumber(HouseInfo[hValue]),HouseInfo[hLevel]);
                    HouseLabel = CreateDynamic3DTextLabel(PropertyString ,0x09FF00CC,HouseInfo[hEntrancex], HouseInfo[hEntrancey], HouseInfo[hEntrancez],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0);
                    DestroyDynamicPickup(HousePickup);
                    HousePickup = CreateDynamicPickup(1273, 23, HouseInfo[hEntrancex], HouseInfo[hEntrancey], HouseInfo[hEntrancez]);
                    if(ivInt >= 0 && ivInt <=5)
                    {
                        mysql_format(SQL, query, sizeof(query), "UPDATE `houses` SET `InteriorType` = 0  WHERE `ID`='%d'",i);
                        mysql_tquery(SQL,query,"","");
                    }
                    else if(ivInt >= 6 && ivInt <=10)
                    {
                        mysql_format(SQL, query, sizeof(query), "UPDATE `houses` SET `InteriorType` = 1  WHERE `ID`='%d'",i);
                        mysql_tquery(SQL,query,"","");
                    }
                    else if(ivInt >= 11 && ivInt <=16)
                    {
                        mysql_format(SQL, query, sizeof(query), "UPDATE `houses` SET `InteriorType` = 2  WHERE `ID`='%d'",i);
                        mysql_tquery(SQL,query,"","");
                    }
                    SetPlayerInterior(playerid, 0);
                    SetPlayerVirtualWorld(playerid, 0);
                    SetPlayerPos(playerid, HouseInfo[hEntrancex], HouseInfo[hEntrancey], HouseInfo[hEntrancez]);
                    housess++;
                    format(string,sizeof(string),"[Casa] %d a fost creata cu succes.!",i);
                    SendClientMessage(playerid, COLOR_YELLOW, string);
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "[Admin] %s: a creat o noua casa ID %d", sendername, i);
                    ABroadCast(COLOR_ADMCHAT, string, 1);
            }
            else return SendClientMessage(playerid, COLOR_ERROR, AdminOnly);
        }
        return 1;
    }

  5. 9 hours ago, razvanduciuc said:

    Salut, eu sunt Razvan si astazi vreau sa va prezint un mic edit de-al meu de 2-a ore cam asa a GM-ului AngelZone facut de VLM

    "PS: Nu stiu sigur de cine este facut sau cine a mai umblat prin el, nu am gasit nici un fel de credite"

    Sistemul de joc are urmatorele update-uri facute de mine + ce avea implementat in el. Unele din ele sunt netestate pentru ca nu am avut timp, dar va las pe voi sa le testati si sa imi lasati un Reply daca va placut.

    
    //==========================================+++++++++++++++++++++++++++++++++++++++++++===========================================================
    //Edit, eu Razvan Duciuc la cerintele lui KiNGzOR de pe https://www.sa-mp.ro am adaugat pe acest mod de joc Angel Zone urmatoarele update-uri.	//
    //Am adaugat sistemul de Bitcoin.                                                                                                           	//
    //Am adaugat Job-ul de Instalator.                                                                                                              //
    //Am adaugat Job-ul de Gropar.                                                                                                                  //
    //Am implementat un sistem de Send Email prin care poti trimite un email unui jucator direct din joc prin comanda /sendmail						//
    //A fost adaugata comanda /crash pentru adminii de Level 5+																						//
    //Am adaugat un mic sistem de bonus pentru server, prin comenzile /setppstock, /setvipstock, iar playerii pentru a lua PP-urile sau contul VIP..//
    //.. trebuie sa folosesca /getpp si /getvip, vor fi anuntati global de catre SERVER BONUS si vor primi detalii pentru a ridica premiul          //
    //Au fost rescrise si prescurtate comenzile /panel si /forum                                                                                    //
    //Au fost adaugate comenzile /acolor, /vipcolors si comanda /pcolor modificata, adaugate 26 culori in ea.                                		//
    //La /vipcolors sunt 4 culori altele fata de cele adminilor sau helperilor cat si a playerilor normali.                                         //
    //Am adaugat comanda /premiumlist afiseaza Premium user online                                                                                  //
    //Adaugata comanda /hac, prin aceasta comanda un admin poate repara toate vehiculele de pe server                                               //
    //Adaugata comanda /calculator, pentru a face un calcul daca ai nevoie, probabil inutila dar e folositoare cate odata!                          //
    //Adaugate comenzile /howner si /bowner, seteaza casa sau biz-ul unui jucator direct din joc de catre un admin 6+. NETESTATE!!!!				//
    //A fost adaugata comanda /sstats prin aceasta comanda va va arata tick-urile si alte chestii importante!                                       //
    //A fost adaugata comanda /vtag pentru userii VIP, prin aceasta comanda li se va pune un Text deasupra capului cu V.I.P. User                   //
    //A fost adaugat minisistemu de Camping, nu este creeat de mine il am de pe un GM, comenzile sunt pentru admin 6+ si sunt urmatoarele ...       //
    //... /camp - pentru activare minicamping si /campdestroy - pentru a distruge obiectele minicamp                                                //
    //A fost adaugat in /shop User Vip ce va costa 200 Premium Points                                                                               //
    //Au fost rezolvate mai multe Bug-uri.                                                                                                          //
    //Pentru a va pune fondator intrati in GM si schimbati din EstiFondator numele Razvan in numele vostru!										    //
    //Mai multe update-uri pe parcurs!!!                                                                                                            //
    //Al vostru Razvan va saluta cu drag!                                                                                                           //
    //=========================================+++++++++++++++++++++++++++++++++++++++++++============================================================

    Poze: Link Link 2

    Link Download #1: https://www25.zippyshare.com/v/OEcNNQk2/file.html

    Link Download #2: http://www.mediafire.com/file/yhuk8denk1eha97/Gamemode_AngelZone_Edit_By_Razvan.rar/file

    Link Virus Total #1: https://www.virustotal.com/#/url/2460c704bcf43a83988d0b82f2e56948c817c506b85e2dfdc28b5c134e718cfd/detection

    Link Virus Total #2: https://www.virustotal.com/#/url/417aed1429adfc9713b264e571d8be05057b10c844f642f8e334b67148ce2130/detection

     

    Sper sa va placa, nu a fost editat ca asa am vrut eu l-am editat la cerintele lui @KiNGzOR!

    El a facut mai multe update-uri pe GM si a mai rezolvat din bug-uri, dar GM-ul editat de el dupa editura mea a spus ca ii va apartine doar lui!

    Multa bafta cu Sistemul De Joc SA:MP RPG!

    Asa faci frate... Ai zis ca nu o sa il pui pe net.

    EDIT: Esti chiar nesimtit,ce am vorbit noi? Ca nu o sa-l pui,oricum am adaugat eu mai multe sisteme.

  6. 48 minutes ago, iSkull said:
    
    	CMD:moscraciun(playerid, params[])
    {
        if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
        if(!BonusActiv) return 1;
        if(PlayerInfo[playerid][pMosCraciun] == 1) return SendClientMessage(playerid, -1, "Ai folosit deja comanda. Nu o mai poti folosi");
        new name[24], string[75];
        GetPlayerName(playerid, name, 24);
        GiveMoney(playerid, 30000000);
        PlayerInfo[playerid][pScore] += 5;
        PlayerInfo[playerid][pDiamonds] = 100;
        SetPlayerScore(playerid, PlayerInfo[playerid][pScore]);
        SendClientMessage(playerid, COLOR_WHITE, "--------------------------[Mos Craciun]---------------------------------");
        SendClientMessage(playerid, COLOR_RED, "Ai primit $30,000,000 cadou de la Mos Craciun!");
        SendClientMessage(playerid, COLOR_BLUE, "Ai primit 5 level up-uri de la Mos Craciun!");
        SendClientMessage(playerid, COLOR_YELLOW, "Ai primit 100 diamonds cadou de la Mos Craciun!");
        SendClientMessage(playerid, COLOR_WHITE, "--------------------------[Mos Craciun]---------------------------------");
        PlayerInfo[playerid][pMosCraciun] = 1;
        format(string, 75, "%s a primit cadoul de la Mos Craciun!", name);
        SendClientMessageToAll(COLOR_WHITE, string);
        return 1;
    } 
    	

    Fii mai atent, "pInfo" nu tine locul lui PlayerInfo, acela e enum-ul + mai citeste inainte sa postezi.

    Mersi.

  7. CMD:moscraciun(playerid, params[])
    {
        if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
        if(IsPlayerConnected(playerid))
         {
             if(BonusActiv > 0)
             {
                     if(pInfo[playerid][pMosCraciun] == 1 ) return SendClientMessage(playerid, -1, "Ai folosit deja comanda. Nu o mai poti folosi");
                     GiveMoney(playerid, 30000000);
                     PlayerInfo[playerid][pScore] += 5;
                     PlayerInfo[playerid][pDiamonds] = 100;
                     SetPlayerScore(playerid, PlayerInfo[playerid][pScore]);
                     SendClientMessage(playerid, COLOR_WHITE, "--------------------------[Mos Craciun]---------------------------------");
                     SendClientMessage(playerid, COLOR_RED, "Ai primit $30,000,000 cadou de la Mos Craciun!");
                     SendClientMessage(playerid, COLOR_BLUE, "Ai primit 5 level up-uri de la Mos Craciun!");
                     SendClientMessage(playerid, COLOR_YELLOW, "Ai primit 100 diamonds cadou de la Mos Craciun!");
                     SendClientMessage(playerid, COLOR_WHITE, "--------------------------[Mos Craciun]---------------------------------");
            pInfo[playerid][pMosCraciun] = 1;
            }
        }
        return 1;
    }

  8. Just now, iSkull said:

    Daca vrei sa nu conteze level-ul trebuie sa faci o noua variabila ce se salveaza in baza de date/folder-ul player-ului.

    Poftim comanda care arata un mesaj global atunci cand cineva primeste cadoul.

     

    
    	CMD:moscraciun(playerid, params[])
    {
        if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
        if(!BonusActiv) return 1;
        if(PlayerInfo[playerid][pScore] > 4) return SendClientMessage(playerid, COLOR_LIGHTRED, "Ai luat deja cadoul de Mos Craciun !");
        new name[24], string[100];
        GetPlayerName(playerid, name, 24);
        GiveMoney(playerid, 30000000);
        PlayerInfo[playerid][pScore] += 5;
        PlayerInfo[playerid][pDiamonds] = 100;
        SetPlayerScore(playerid, PlayerInfo[playerid][pScore]);
        SendClientMessage(playerid, COLOR_WHITE, "--------------------------[Mos Craciun]---------------------------------");
        SendClientMessage(playerid, COLOR_RED, "Ai primit $30,000,000 cadou de la Mos Craciun!");
        SendClientMessage(playerid, COLOR_BLUE, "Ai primit 5 level up-uri de la Mos Craciun!");
        SendClientMessage(playerid, COLOR_YELLOW, "Ai primit 100 diamonds cadou de la Mos Craciun!");
        SendClientMessage(playerid, COLOR_WHITE, "--------------------------[Mos Craciun]---------------------------------");
        format(string, 100, "%s a primit cadoul de la Mos Craciun!", name);
        SendClientMessageToAll(COLOR_WHITE, string);
        return 1;
    } 
    	

     

    Am rezolvat,am facut o variabila numita pMosCraciun si am facut asa comanda:

    CMD:moscraciun(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(IsPlayerConnected(playerid)) { if(BonusActiv > 0) { if(pInfo[playerid][pMosCraciun] == 1 ) return SendClientMessage(playerid, -1, "Ai folosit deja comanda. Nu o mai poti folosi"); GiveMoney(playerid, 30000000); PlayerInfo[playerid][pScore] += 5; PlayerInfo[playerid][pDiamonds] = 100; SetPlayerScore(playerid, PlayerInfo[playerid][pScore]); SendClientMessage(playerid, COLOR_WHITE, "--------------------------[Mos Craciun]---------------------------------"); SendClientMessage(playerid, COLOR_RED, "Ai primit $30,000,000 cadou de la Mos Craciun!"); SendClientMessage(playerid, COLOR_BLUE, "Ai primit 5 level up-uri de la Mos Craciun!"); SendClientMessage(playerid, COLOR_YELLOW, "Ai primit 100 diamonds cadou de la Mos Craciun!"); SendClientMessage(playerid, COLOR_WHITE, "--------------------------[Mos Craciun]---------------------------------"); pInfo[playerid][pMosCraciun] = 1; } } return 1; }

  9. Salut,as dorii si eu sa ma ajutati sa imi spuneti la comanda asta cum as putea sa pun sa nu conteze levelul,ci sa poata sa o foloseasca doar odata,si odata ce o folosesc sa nu mai poata sa le scrie asa "Ai luat deja cadoul de Mos Craciun",si odata ce foloseste comanda sa se dea pe comanda /o adica anunt pentru tot serverul "%s a luat cadoul de Mos Craciun" %s fiind inlocuit cu numele jucatorului.

    Comanda:

    CMD:moscraciun(playerid, params[])
    {
        if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
        if(IsPlayerConnected(playerid))
         {
             if(BonusActiv > 0)
             {
                 if(PlayerInfo[playerid][pScore] <= 4)
                 {
                     GiveMoney(playerid, 30000000);
                     PlayerInfo[playerid][pScore] += 5;
                     PlayerInfo[playerid][pDiamonds] = 100;
                     SetPlayerScore(playerid, PlayerInfo[playerid][pScore]);
                     SendClientMessage(playerid, COLOR_WHITE, "--------------------------[Mos Craciun]---------------------------------");
                     SendClientMessage(playerid, COLOR_RED, "Ai primit $30,000,000 cadou de la Mos Craciun!");
                     SendClientMessage(playerid, COLOR_BLUE, "Ai primit 5 level up-uri de la Mos Craciun!");
                     SendClientMessage(playerid, COLOR_YELLOW, "Ai primit 100 diamonds cadou de la Mos Craciun!");
                     SendClientMessage(playerid, COLOR_WHITE, "--------------------------[Mos Craciun]---------------------------------");
                }
                else return SendClientMessage(playerid, COLOR_LIGHTRED, "Ai luat deja cadoul de Mos Craciun !");
            }
        }
        return 1;
    }

  10. Salut,am si eu doua job-uri,vacar si colindator,la colindator normal se dadea diamante,insa eu am pus sa se dea bani,dar cand intru in checkpoint sau cand dau /goleste la vacar,imi da banii si dupa mii ia,de ce? la mine in gamemode e "pMoney" nu "pCash" probabil deaia?

  11. 14 minutes ago, Banditul said:

    Asta e problema, acel Update nu e o variabila este o functie

    
    Update(playerid, int)
    {
    	//Ce face functia
    }

    Dar e posibil sa nu functioneze cum te astepti daca o vei lua din gm si o vei pune in filterscript

    2 posibilitati:

    1. Implementezi filterscriptu in gm

    2. Folosesti https://wiki.sa-mp.com/wiki/CallRemoteFunction pentru a chema functia din GM si ii pasezi argumentele necesare (asta daca functia din gm Update este de tip public)

    Doar ca vei avea o problema, chiar daca vei face asta banii dati in filterscript nu sunt pasati in gm deci in concluzie nu se vor actualiza

     

    Cea mai simpla solutie este de a crea tu query de a actualiza banii in baza de date

    
    new query[144];
    mysql_format(SQL, query, sizeof(query), "UPDATE users SET money = money + %i WHERE playername = '%s'", money, name);
    mysql_tquery(SQL, query);

    Doar ca ramane o problema, playerul nu va avea banii respectivi la el pana la relog. Ce poti face este sa te duci in GM sa faci functia GivePlayerCash public

    
    forward GivePlayerCash(playerid, cash);
    public GivePlayerCash(playerid, cash)
    {
    	//ce face functia GivePlayerCash in gm
    }

    Si sa o chemi din filterscript cu CallRemoteFunction

    
    CallRemoteFunction("GivePlayerCash", "ii", playerid, money);

     

    Nu stiu sa fac asta,ma poti ajuta? Daca da,ai discord?

  12. Buna seara sa-mp.ro,am si eu o problema la TextDraw Editor.

    Am facut tot cum trebuie insa cand intru pe server,dau /tde aleg ce nume vreau,apar alea insa dupa ma scoate din samp-server.exe si se stinge serverul.

    Ati avea idee de ce?

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