Jump to content

calin1996

Membru
  • Posts

    177
  • Joined

  • Last visited

Posts posted by calin1996

  1. Indepartezi tot ce tine de ,,MySQL"

    Bine bai "scriptere", daca indepartezi TOT ce tine de mysql ai bulit tot gamemodul. Cum ti se mai salveaza ba datele? Numai scripteri pe forumul asta :-j

    Mai bine stai cuminte, ca sa treci de pe mysql pe INI NU are rost! Merge greu + necesita ceva timp.

  2. Nu merge, raman la eroare 029, deci stie cineva?

    repet, STIE CINEVA?

    Daca pui un singur =, inseamna ca ii setezi valoarea aia, ceea ce NU poti face intr-un if.

    [pawn]

    public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)

    {

        if(GetPlayerWeapon(Shooter) == 34)

        {

    if (PlayerInfo[shooter][pMember] == 8)

    {

            SetPlayerHealth(Target, 0);

            }

    }

        return 1;

    }[/pawn]

    Deci adaugi

    [pawn]new PlayerInfo[MAX_PLAYERS][pInfo];[/pawn]

    Vezi ca te-ai murdarit de scripting la bot, esti total paralel. Daca ai parametrul Shooter in callback, de ce naiba ii faci string separat?? /:)

  3. [pawn]new shooter[MAX_PLAYERS][/pawn]

    Adauga asta si vezi daca iti mai da erori.

    OFF: Ba inteligentule, callback-ul ala are deja setat ca parametru Shooter, de ce draci ii faci string??,

    NU l-am pus cum litera mare( in loc de Shooters am pus shooter) de aia ii da eroare.

    Esti total paralel cu scriptingul!!!

    ON: Incearca acum:

    [pawn]awno Code: [select]

    public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)

    {

        if(GetPlayerWeapon(Shooter) == 34)

        {

    if(PlayerData[shooter][pMember] == 8)

    {

            SetPlayerHealth(Target, 0);

            }

    }

        return 1;

    }[/pawn]

  4. [pawn]public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)

    {

        if(GetPlayerWeapon(Shooter) == 34)

        {

    if(PlayerInfo[shooter][pMember] = IDFACTIUNIIHITMAN)

    {

            SetPlayerHealth(Target, 0);

            }

    }

        return 1;

    }[/pawn]

    Cum se numeste enumul pentru playeri? Gen: PlayerInfo

  5. "Cine imi face si mie ca nu am destula creativitate si mi-e lene sa caut pe google o functie"

    [pawn]public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)

    {

        if(GetPlayerWeapon(Shooter) == 34)

        {

    if(PlayerInfo[shooter][pMember] = IDFACTIUNIIHITMAN)

    {

            SetPlayerHealth(Target, 0);

            }

    }

        return 1;

    }[/pawn]

    http://forum.sa-mp.com/showthread.php?p=937824

    Downloadeaza INCLUDEUL, Baga-l in folderul pawn/includes si in gamemode.

  6. Pai unde ai facut 3DTextele?

    Pai in ce loc?Sistemul de case este facut de tine sau luat de pe net si imbunatatit?

    Asta pentru ca ai pus doua sisteme de case pe server,unul creat tip .cfg si altul creat din GM,alegi intre cele 2 sisteme.

    Da stiu scripting ma, unde ai pus 3DTEXT-urile?Si a 2a intrebare:

    Ai public LoadProperty?

    Ni-l arati si noua daca se poate?

    Asta am spus si eu ca doar tu "esti cel mai mare scripter din romania:))"si trebuie sa contrazici toti userii de pe forum asa te laudai adeneauri pe mess si pe alte servere ca ai intrat cu s.0.b pe b****d.

    Asta ai spus si tu nu?? Iarasi te-ai facut mincinos si ai facut OFF-TOPIC, M-am laudat eu pe mess ca am intrat cu sob.eit pe un server cu anti sob.eit? Te-ai facut singur "mancator de rahat" mai vrei moderator :-j

    ON: Contacteaza-ma pe yahoo, am id-ul la profil. Te pot ajuta.

  7. Le respecta pe toate ,uite :

    [pawn]Create3DTextLabel("{FF0000}Stunt 1\n{FF9900}Type {00BBF6}/StartStunt{FF9900} to try this stunt and earn some Stunt Points!",0xFF9900FF, 1843.689941,1455.381835,11.197062, 100, 0, 0);

    Create3DTextLabel("{FF0000}Stunt 2\n{FF9900}Type {00BBF6}/StartStunt{FF9900} to try this stunt and earn some Stunt Points!",0xFF9900FF, 1838.994873,1586.723144,8.527256, 100, 0, 0);

    Create3DTextLabel("{FF0000}Stunt 3\n{FF9900}Type {00BBF6}/StartStunt{FF9900} to try this stunt and earn some Stunt Points!",0xFF9900FF, 2335.312255,2149.432128,10.249174, 100, 0, 0);

    Create3DTextLabel("{FF0000}Stunt 4\n{FF9900}Type {00BBF6}/StartStunt{FF9900} to try this stunt and earn some Stunt Points!",0xFF9900FF, 1922.183959,2008.699096,10.116531, 100, 0, 0);

    Create3DTextLabel("{FF0000}Stunt 5\n{FF9900}Type {00BBF6}/StartStunt{FF9900} to try this stunt and earn some Stunt Points!",0xFF9900FF, 1943.340087,2199.185791,10.392769, 100, 0, 0);

    Create3DTextLabel("{FF0000}Stunt 6\n{FF9900}Type {00BBF6}/StartStunt{FF9900} to try this stunt and earn some Stunt Points!",0xFF9900FF, 2876.097167,1579.139160,10.393080, 100, 0, 0);

    Create3DTextLabel("{FF0000}Stunt 7\n{FF9900}Type {00BBF6}/StartStunt{FF9900} to try this stunt and earn some Stunt Points!",0xFF9900FF, -2264.446044,320.152679,34.956920, 100, 0, 0);

    Create3DTextLabel("{FF0000}Stunt 8\n{FF9900}Type {00BBF6}/StartStunt{FF9900} to try this stunt and earn some Stunt Points!",0xFF9900FF, -2490.424072,441.591400,27.666994, 100, 0, 0);

    Create3DTextLabel("{FF0000}Stunt 9\n{FF9900}Type {00BBF6}/StartStunt{FF9900} to try this stunt and earn some Stunt Points!",0xFF9900FF, 1872.261840,-1427.949462,10.135522, 100, 0, 0);

    Create3DTextLabel("{FF0000}Stunt 10\n{FF9900}Type {00BBF6}/StartStunt{FF9900} to try this stunt and earn some Stunt Points!",0xFF9900FF, -2003.273559,-283.168212,34.892936, 100, 0, 0);

    Create3DTextLabel("{FF0000}Stunt 11\n{FF9900}Type {00BBF6}/StartStunt{FF9900} to try this stunt and earn some Stunt Points!",0xFF9900FF, 2218.766113,2406.661132,10.385766, 100, 0, 0);

    Create3DTextLabel("{FF0000}Stunt 12\n{FF9900}Type {00BBF6}/StartStunt{FF9900} to try this stunt and earn some Stunt Points!",0xFF9900FF, 1536.790649,-1742.266601,13.120272, 100, 0, 0);

    Create3DTextLabel("{FF0000}Stunt 13\n{FF9900}Type {00BBF6}/StartStunt{FF9900} to try this stunt and earn some Stunt Points!",0xFF9900FF, -1795.686645,730.918395,34.581394, 100, 0, 0);

    Create3DTextLabel("{FF0000}Stunt 14\n{FF9900}Type {00BBF6}/StartStunt{FF9900} to try this stunt and earn some Stunt Points!",0xFF9900FF, 1855.901489,-1467.969238,12.967999, 100, 0, 0);

    Create3DTextLabel("{FF0000}Stunt 15\n{FF9900}Type {00BBF6}/StartStunt{FF9900} to try this stunt and earn some Stunt Points!",0xFF9900FF, 2008.5825,898.3736,10.8203, 100, 0, 0);

    Create3DTextLabel("{FF0000}Stunt 16\n{FF9900}Type {00BBF6}/StartStunt{FF9900} to try this stunt and earn some Stunt Points!",0xFF9900FF, -2020.0881,280.9357,33.6728, 100, 0, 0);

    Create3DTextLabel("{FF0000}Stunt 17\n{FF9900}Type {00BBF6}/StartStunt{FF9900} to try this stunt and earn some Stunt Points!",0xFF9900FF, -2267.7322,-101.9585,35.3203, 100, 0, 0);

    Create3DTextLabel("{FF0000}Stunt 18\n{FF9900}Type {00BBF6}/StartStunt{FF9900} to try this stunt and earn some Stunt Points!",0xFF9900FF, 1874.7528,-1444.5380,13.5523, 100, 0, 0);

    Create3DTextLabel("{FF0000}Stunt 19\n{FF9900}Type {00BBF6}/StartStunt{FF9900} to try this stunt and earn some Stunt Points!",0xFF9900FF, 2065.8989,-1341.0337,23.8203, 100, 0, 0);

    Create3DTextLabel("{FF0000}Stunt 20\n{FF9900}Type {00BBF6}/StartStunt{FF9900} to try this stunt and earn some Stunt Points!",0xFF9900FF, 2140.3252,-2223.0552,13.3899, 100, 0, 0);

    Create3DTextLabel("{FF0000}Stunt 21\n{FF9900}Type {00BBF6}/StartStunt{FF9900} to try this stunt and earn some Stunt Points!",0xFF9900FF, 1453.8309,-1301.0034,13.3828, 100, 0, 0);

    Create3DTextLabel("{FF0000}Stunt 22\n{FF9900}Type {00BBF6}/StartStunt{FF9900} to try this stunt and earn some Stunt Points!",0xFF9900FF, 1618.2666,-1592.0277,13.5469, 100, 0, 0);

    Create3DTextLabel("{FF0000}Stunt 23\n{FF9900}Type {00BBF6}/StartStunt{FF9900} to try this stunt and earn some Stunt Points!",0xFF9900FF, 2168.9238,1213.3776,10.8203, 100, 0, 0);

    Create3DTextLabel("{FF0000}Stunt 24\n{FF9900}Type {00BBF6}/StartStunt{FF9900} to try this stunt and earn some Stunt Points!",0xFF9900FF, 1878.2155,933.3936,10.6719, 100, 0, 0);

    Create3DTextLabel("{FF0000}Stunt 25\n{FF9900}Type {00BBF6}/StartStunt{FF9900} to try this stunt and earn some Stunt Points!",0xFF9900FF, -2291.7871,726.4196,49.4384, 100, 0, 0);

    Create3DTextLabel("{FF0000}Stunt 26\n{FF9900}Type {00BBF6}/StartStunt{FF9900} to try this stunt and earn some Stunt Points!",0xFF9900FF, 1373.9473,-939.9419,34.1875, 100, 0, 0);

    Create3DTextLabel("{FF0000}Stunt 27\n{FF9900}Type {00BBF6}/StartStunt{FF9900} to try this stunt and earn some Stunt Points!",0xFF9900FF, 1338.1860,-1282.4750,13.3828, 100, 0, 0);

    Create3DTextLabel("{FF0000}Stunt 28\n{FF9900}Type {00BBF6}/StartStunt{FF9900} to try this stunt and earn some Stunt Points!",0xFF9900FF, -2706.4919,77.4287,4.2335, 100, -1, 0);

    Create3DTextLabel("{FF0000}Stunt 29\n{FF9900}Type {00BBF6}/StartStunt{FF9900} to try this stunt and earn some Stunt Points!",0xFF9900FF, -1721.1567,1103.0718,45.2969, 100, 0, 0);

    Create3DTextLabel("{FF0000}Stunt 30\n{FF9900}Type {00BBF6}/StartStunt{FF9900} to try this stunt and earn some Stunt Points!",0xFF9900FF, 343.6241,-1467.3586,35.5242, 100, 0, 0);

    Create3DTextLabel("{FF0000}Drift\n{FF9900}Type {00BBF6}/StartDrift{FF9900} to try this drift and earn some Drift Points!",0xFF9900FF, 3364.533447,-2926.035400,87.998352, 100, 0, 0);

    Create3DTextLabel("{FF0000}Drift\n{FF9900}Type {00BBF6}/StartDrift{FF9900} to try this drift and earn some Drift Points!",0xFF9900FF, -304.8671,1504.7484,75.1842, 100, 0, 0);

    Create3DTextLabel("{FF0000}Drift\n{FF9900}Type {00BBF6}/StartDrift{FF9900} to try this drift and earn some Drift Points!",0xFF9900FF, -1064.1892,-1648.0212,76.3646, 100, 0, 0);

    Create3DTextLabel("{FF0000}Drift\n{FF9900}Type {00BBF6}/StartDrift{FF9900} to try this drift and earn some Drift Points!",0xFF9900FF, -2412.0713,-601.0752,132.3322, 100, 0, 0);

    Create3DTextLabel("{FF0000}Drift\n{FF9900}Type {00BBF6}/StartDrift{FF9900} to try this drift and earn some Drift Points!",0xFF9900FF, 1638.3143,-1129.7533,23.6333, 100, 0, 0);

    Create3DTextLabel("{FF0000}Monster Parkour\n{FF9900}Type: {00BBF6}/StartMPK{FF9900} to try this parkour and earn some Coins!",0xFF9900FF, -2906.0999,71.2471,4.3082, 100, 0, 0);

    Create3DTextLabel("{FF0000}Spawn Zone\n{FF9900}Type: {00BBF6}/HM{FF9900} for Free Health and Armour!\n{FF9900}Type: {00BBF6}/Help{FF9900} if you are new!",0xFF9900FF, -2633.8022,1359.0215,7.1174, 100, 0, 0);

    Create3DTextLabel("{FF0000}Spawn Zone\n{FF9900}Type: {00BBF6}/HM{FF9900} for Free Health and Armour!\n{FF9900}Type: {00BBF6}/Help{FF9900} if you are new!",0xFF9900FF, -527.4187,2024.0046,47.4903, 100, 0, 0);

    Create3DTextLabel("{FF0000}Spawn Zone\n{FF9900}Type: {00BBF6}/HM{FF9900} for Free Health and Armour!\n{FF9900}Type: {00BBF6}/Help{FF9900} if you are new!",0xFF9900FF, 404.8082,2448.4775,16.5703, 100, 0, 0);

    Create3DTextLabel("{FF0000}Spawn Zone\n{FF9900}Type: {00BBF6}/HM{FF9900} for Free Health and Armour!\n{FF9900}Type: {00BBF6}/Help{FF9900} if you are new!",0xFF9900FF, -2335.8875,-1626.1935,483.7803, 100, 0, 0);

    Create3DTextLabel("{FF0000}Spawn Zone\n{FF9900}Type: {00BBF6}/HM{FF9900} for Free Health and Armour!\n{FF9900}Type: {00BBF6}/Help{FF9900} if you are new!",0xFF9900FF, 1856.7677,-2281.7593,16.0903, 100, 0, 0);

    Create3DTextLabel("{FF0000}Spawn Zone\n{FF9900}Type: {00BBF6}/HM{FF9900} for Free Health and Armour!\n{FF9900}Type: {00BBF6}/Help{FF9900} if you are new!",0xFF9900FF, -1373.9581,-257.4903,18.7700, 100, 0, 0);

    Create3DTextLabel("{FF0000}Spawn Zone\n{FF9900}Type: {00BBF6}/HM{FF9900} for Free Health and Armour!\n{FF9900}Type: {00BBF6}/Help{FF9900} if you are new!",0xFF9900FF, 1590.9952,1448.2764,13.3303, 100, 0, 0);[/pawn]

    Ultimele 8 Texte nu mai apar.. :(

    Sterge JUMATATE DIN TEXT DIN ultimele 8 3dlabel,compileaza si vezi daca iti apar.

  8. Ma nu am comenzile alea ca e un clan system FS

    Pai atunci posteaza ENUMURILE playerilor din acel FS.

    Nu inteleg ce cauta PlayerInfo acolo. De ce nu ai postat ce ai vrut sa faci sa stim ce sa-ti cerem sa postezi?

  9. Salut SA:MP.RO

    astazi vreau sa va intreb ceva daca se poate:

    Am vazut pe multe FORUM-uri ca au PANEL CONTROL PLAYER

    Si dai click pe PANEL CONTROL PLAYER iar dupa iti deschide alta fereastra si te loghezi, iar de pe PANEL CONTROL PLAYER iti apare totul din GAME

    Exemplu:

    egaming ...

    Forumul este : forum.egaming.ro

    Iar PANLE CONTROL PLAYER este : samp.egaming.ro

    Cum as putea face si eu asa?

    Multumesc anticipat :)

    Gamemodul trebuie sa fie MYSQL Si sa ai cunostiinte in PHP (CRED). Nu e ceva usor.

    PS: Se gasesc pe net diferite UCP uri.

  10. Cauta pe goagle, mysql, il inveti si dupa vei sti care este problema,PS: Daca nu ai timp ca si mine,ia un antichrash.text

    Deschizi serverul si intri tu pe el,ti se inchide si dupa uitate in anticrash.text document.Vei vedea care este problema.

    P.S.Serverul lui Gireada are anticrash.text document,te sfatuiesc sa il iei de acolo.

    Iauzi ma? tu nu ai timp de mysql? Tu nu stii nici macar un LOOP sa-l faci singur si te bagi la mysql?:)))

    ON: Da-mi PM cu id ul tau, iti spun eu ce este de facut.

  11. Aceasta este comanda:

    [pawn] if(strcmp(cmd, "/contract", true) == 0)

    {

        if(IsPlayerConnected(playerid))

      {

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /contract [playerid/PartOfName] [amount]");

    return 1;

    }

    giveplayerid = ReturnUser(tmp);

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /contract [playerid/PartOfName] [amount]");

    return 1;

    }

    moneys = strval(tmp);

    if(moneys < 1000 || moneys > 1000000) { SendClientMessage(playerid, COLOR_GREY, "  Contract money must be atleast $1000, and not more then $1000000!"); return 1; }

    if(PlayerInfo[playerid][pLevel] < 2)

    {

    SendClientMessage(playerid, COLOR_GRAD1, "You must be level 2 to place a Contract.");

    return 1;

    }

    if (IsPlayerConnected(giveplayerid))

    {

        if(giveplayerid != INVALID_PLAYER_ID)

        {

        if(PlayerInfo[giveplayerid][pMember] == 8 && PlayerInfo[playerid][pMember] == 8)

        {

            SendClientMessage(playerid, COLOR_GREY, "* Cannot place Contracts on your own Agency!");

            return 1;

        }

        else if(PlayerInfo[giveplayerid][pLeader] == 8 && PlayerInfo[playerid][pMember] == 8)

        {

            SendClientMessage(playerid, COLOR_GREY, "* Cannot place Contracts on your own Agency!");

            return 1;

        }

        else if(PlayerInfo[giveplayerid][pMember] == 8||PlayerInfo[giveplayerid][pLeader] == 8)

        {

            SendClientMessage(playerid, COLOR_GREY, "* Can't contract a Hitman !");

            return 1;

        }

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

        {

            SendClientMessage(playerid, COLOR_GREY, "* You may not place a contract on admin/testers on duty");

            return 1;

        }

        if(IsACop(giveplayerid) && moneys < 30000)

        {

            SendClientMessage(playerid, COLOR_GREY, "* Only $30000 or above can be placed as a Contract on Cops !");

            return 1;

        }

        if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "* You cannot Contract yourself!"); return 1; }

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

    playermoney = GetPlayerMoney(playerid);

    if (moneys > 0 && playermoney >= moneys)

    {

    SafeGivePlayerMoney(playerid, (0 - moneys));

    PlayerInfo[giveplayerid][pHeadValue]+=moneys;

    format(string, sizeof(string), "%s has placed a contract on %s, for $%d.",sendername, giveplayer, moneys);

    SendFamilyMessage(8, COLOR_YELLOW, string);

    format(string, sizeof(string), "* You placed a contract on %s, for $%d.",giveplayer, moneys);

    SendClientMessage(playerid, COLOR_WHITE, string);

    format(string, sizeof(string), "[iNFO]: %s (%d) has placed a contract on %s (%d) for $%d", sendername, playerid, giveplayer,giveplayerid, moneys);

    SendAdminMessage(COLOR_YELLOW,string);

    SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "* Someone has placed a hit contract on you, you might want protection!");

    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);

    }

    else

    {

    SendClientMessage(playerid, COLOR_GRAD1, "  Invalid transaction amount.");

    }

    }

    }

    else

    {

    format(string, sizeof(string), "  %d is not an active player.", giveplayerid);

    SendClientMessage(playerid, COLOR_GRAD1, string);

    }

    }

    return 1;

    }

    SendClientMessage(playerid,COLOR_GREY, "SERVER: You have Typed An Unknown Command, Type /help or /atalk if you need Help!");

    return 1;

    }[/pawn]

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