Jump to content

Octav97

Membru
  • Posts

    65
  • Joined

  • Last visited

Posts posted by Octav97

  1.  

        GetPlayerName(targetid, name, sizeof(name));

            GetPlayerHealth(targetid,health);

            new Float:px,Float:py,Float:pz;

            GetPlayerPos(targetid, px, py, pz);

            new coordsstring[128];//era 256

            SendClientMessage(playerid, COLOR_NICERED,"_____________________________________________________________________________________________");

            format(coordsstring, sizeof(coordsstring),"*** %s ***",name);

            SendClientMessage(playerid, COLOR_LIGHTBLUE,coordsstring);

            format(coordsstring, sizeof(coordsstring), "Level:[%d] Sex:[%s] Age:[%d] Origin:[%s] SpawnHealth:[%.1f] Cash:[$%d] Bank:[$%d] Ph:[%d]", level,atext,age,otext,shealth+50, cash FormatMoney( GetPlayerMoney ), account FormatMoney( GetPlayerMoney ), pnumber);

            SendClientMessage(playerid, COLOR_WHITE,coordsstring);

            format(coordsstring, sizeof(coordsstring), "DonateRank:[%s] MarriedTo:[%s] PlayingHours:[%d] LottoNr:[%d] Job:[%s] Rob:[%d/15]", drank,married,ptime,lotto,jtext,robstat);

            SendClientMessage(playerid, COLOR_LIGHTBLUE,coordsstring);

            format(coordsstring, sizeof(coordsstring), "FishesCaught:[%d] BiggestFish:[%d] CrimesCommited:[%d] TimesArrested:[%d] WantedDeaths:[%d]", fishes,bigfish,crimes,arrests,warrests );

            SendClientMessage(playerid, COLOR_WHITE,coordsstring);

            format(coordsstring, sizeof(coordsstring), "Kills:[%d] War Kills:[%d] Deaths:[%d] NextLevel:[$%d] Respect:[%d/%d] WantedLevel:[%d] Family:[%s]",kills,warkills,deaths,costlevel,exp,expamount,wanted,f2text);

            SendClientMessage(playerid, COLOR_LIGHTBLUE,coordsstring);

            format(coordsstring, sizeof(coordsstring), "Drugs:[%d] Materials:[%d] Team:[%s] Disease:[%s] Organisation:[%s] Rank:[%s]",drugs,mats,ttext,dtext,ftext,rtext);

            SendClientMessage(playerid, COLOR_WHITE,coordsstring);

            format(coordsstring, sizeof(coordsstring), "Club:[%s] Club Rank:[%s] Club Warns:[%d/3] Bounty Points:[%d] Spawn Location:[%s]",xtext,ytext,clubwarns,bounty,wtext);

            SendClientMessage(playerid, COLOR_LIGHTBLUE,coordsstring);

            format(coordsstring, sizeof(coordsstring), "SafeMats:[%d] SafeDrugs:[%d] Warns:[%d/5] Acces Warns:[%d/4] Faction Warns:[%d/3] DD Manager:[%d] DDH Manager:[%d]",matss,drugss,warns,awarns,facwarn,drights,ddhrights);

            SendClientMessage(playerid, COLOR_WHITE,coordsstring);

            format(coordsstring, sizeof(coordsstring), "House key [%d] Bizz key [%d] HireKey [%d] CarKey1:[%d] CarKey2:[%d] Int:[%d] Vw:[%d] Local:[%d]", housekey,bizkey,HireCar[targetid],PlayerInfo[targetid][pCar],PlayerInfo[targetid][pCar2],intir,virworld,PlayerInfo[targetid][pLocal]);

            SendClientMessage(playerid, COLOR_LIGHTBLUE,coordsstring);

    Ute Statusul, dar vreau sa apara si la Cash si la Bank,

  2. Salut!

    Cum pot schimba afisarea banilor (stats, sume la bunuri) sa nu se mai vada 1000000$, ca nu prea se poate citi, sa pot sa fac sa apara un punct sau o virgule, de exemplu 1000000$ sa se veda 1.000.000$.

    +1 Ce-i care ma ajuta!

    Multumesc anticipat!

  3. Problema intalnita (descriere): Nu imi apar toate cladirile
    Ero(area / rile) / warning-(ul / urile): Nu am eroare cand compilez, doar ca nu gasesc nimic cu Destroy sau ceva de genu, sa sterg, ca sa revina mapa la normal, ca inainte de asta erau alte cladiri (un edit) si le-am sters, dar nu stiu cum sa le fac pe cele originale sa reapara!
    Liniile de cod / sursa / script-ul(obligatoriu): -
    Imagini / Video (optional): http://postimg.org/image/6px4clzh3/
    Ati incercat sa rezolvati singur?: Da.

  4. Spam. 

    De exemplu cand intru mesajul "Bun venit pe server" apare de vreo 3 ori la rand, imediat.

    Sau cand ma inregistrez si ma intreaba cati ani am, imi zice "Ok, deci ai 18 ani" si mesajul apare tot de vreo trei ori la rand.

    Dar nu apare tot timpul la fel.

    De cele mai multe ori apare la inregistrare, nu logare.

  5. Salut! 

    Am luat Gm Gf iar cand conectezi (inregistrez sau loghez) imi face un spam la text de doua sau de mai multe ori, la acelasi text... de ce oare.... 

    Exemplu: Mesajul de bun venit pe server... apare de 2-3 ori.... la tutorial la fel.... cand imi setez contul.... la fel... De ce oare?

  6. Cand ma conectezi, la gm gf, cand imi apare sistem de inregistrare/logare imi tot apare in josul ecranului un text care pot sa dau spawn <  >. Cum il pot sterge? Va rog daca ma puteti ajuta! (sunt incepator in scripting)

    Uitati aici o poza:

    http://postimg.org/image/5feab00z1/

  7. e comanda mea /ban: 

    if(strcmp(cmd, "/ban", true) == 0)

    {

        if(IsPlayerConnected(playerid))

        {

        tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: /ban [playerid/PartOfName] [reason]");

    return 1;

    }

    giveplayerid = ReturnUser(tmp);

    if ((!banss) && (PlayerInfo[playerid][pAdmin] > 0))

    {

    format(string, sizeof(string), "  Please try again later %d seconds between Warnings!",  (addtimer/1000));

    SendClientMessage(playerid, COLOR_GRAD2, string);

    return 1;

    }

    if (PlayerInfo[playerid][pAdmin] >= 1)

    {

        if(IsPlayerConnected(giveplayerid))

        {

            if(giveplayerid != INVALID_PLAYER_ID)

            {

        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

    GetPlayerName(playerid, sendername, sizeof(sendername));

    new length = strlen(cmdtext);

    while ((idx < length) && (cmdtext[idx] <= ' '))

    {

    idx++;

    }

    new offset = idx;

    new result[64];

    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))

    {

    result[idx - offset] = cmdtext[idx];

    idx++;

    }

                  result[idx - offset] = EOS;

    if(!strlen(result))

    {

    SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: /ban [playerid/PartOfName] [reason]");

    return 1;

    }

    if(PlayerInfo[giveplayerid][pAdmin] >= 1)

                            {

                    SendClientMessage(playerid,COLOR_GREY,"That player can not be banned");

                    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

                                GetPlayerName(playerid, sendername, sizeof(sendername));

                      format(string, 128, "AdmWarning: %s incearca comanda /ban pe un admin", sendername);

                      ABroadCast(COLOR_YELLOW,string,1);

                      return 1;

                }

    new year, month,day;

    getdate(year, month, day);

    format(string, sizeof(string), "AdmCmd: %s a fost banat de Admin %s, motiv: %s (%d-%d-%d)", giveplayer, sendername, (result),month,day,year);

    BanLog(string);

    format(string, sizeof(string), "AdmCmd: %s a fost banat de Admin %s, motiv: %s", giveplayer, sendername, (result));

    SendClientMessageToAll(COLOR_LIGHTRED, string);

    PlayerInfo[giveplayerid][pLocked] = 1;

    new plrIP[16];

    GetPlayerIp(giveplayerid,plrIP, sizeof(plrIP));

        SendClientMessage(giveplayerid,COLOR_DBLUE,"|___________[bAN INFO]___________|");

                format(string, sizeof(string), "Numele tau este: %s.",giveplayer);

                            SendClientMessage(giveplayerid, COLOR_WHITE, string);

                            format(string, sizeof(string), "IP-ul tau este: %s.",plrIP);

                            SendClientMessage(giveplayerid, COLOR_WHITE, string);

                            format(string, sizeof(string), "Ai fost banat de: %s.",sendername);

                            SendClientMessage(giveplayerid, COLOR_WHITE, string);

                            format(string, sizeof(string), "Ai fost banat pentru urmatorul motiv: %s.",(result));

                            SendClientMessage(giveplayerid, COLOR_WHITE, string);

                            format(string, sizeof(string), "Ai fost banat pe data de: %d/%d/%d (Ziua-Luna-Anul)",day,month,year);

                            SendClientMessage(giveplayerid, COLOR_WHITE, string);

                            SendClientMessage(giveplayerid,COLOR_DBLUE,"|___________[bAN INFO]___________|");

                            SendClientMessage(giveplayerid,COLOR_LIGHTRED,"[bAN INFO]: Poti face o cerere de unban pe forumul nostru.Forumul este www.InsidePlay.net/forum .Succes !");

                            SendClientMessage(giveplayerid,COLOR_WHITE,"[HINT]: Te sfatuim sa faci o poza la aceste informatii,si sa o postezi cand faci cerere unban.Apasa F8 pentru a face poza !");

    Ban(giveplayerid);

    SetTimer("BansOn", banstimer, false);

    banss = 0;

    return 1;

    }

    }//not connected

    }

    else

    {

    format(string, sizeof(string), "Playerul nu este pe server.", giveplayerid);

    SendClientMessage(playerid, COLOR_GRAD1, string);

    }

    }

    return 1;

    }

  8. Am adaugat alea si uite mi-a dat niste erori!

    D:\Server\gamemodes\gf.pwn(17137) : error 017: undefined symbol "ban"

    D:\Server\gamemodes\gf.pwn(17137) : error 033: array must be indexed (variable "-unknown-")

    D:\Server\gamemodes\gf.pwn(17137) : error 029: invalid expression, assumed zero

    D:\Server\gamemodes\gf.pwn(17137) : fatal error 107: too many error messages on one line

    Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    4 Errors.

    De ce oare???

  9. Cum fac la comanda /ban sa pot bana si un numar de zile! eu am doar sa dau ban permanent!

    As vrea sa fac ceva de genul /ban (player) (0 => permanent |  1, 2, 3... => numar de zile) (motiv) , sau ceva de genu!

    Va rog, daca ma puteti ajuta.

  10. Salut! Am scos de pe internet gm gf cu ceva timp in urma... L-am tot editat, doar ca atunci cand intra un player nou ii da level 2, si nu level 1! Cum fac sa ii dea level 1?  Va rog ajutatima, sunt incepator.

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