Jump to content

eXot

Uživatel
  • Příspěvků

    310
  • Registrován

  • Aktivní

  • Vítězných dnů

    1

Příspěvky posted by eXot

  1. San Andreas Life

     

     

    Zdravím, chcel by som sa s vami podeliť o môj GM ktorý mi už vyše roka zbytočné trčí v PC nevyužitý. Jedná sa o vylepšenú kópiu RZE 8 (dont hate .. :d). Pracoval som na tom pred cca 2 rokmi so zámerom že si to dám na server ale nakoniec som sa nato vykašlal lebo som pochopil že to nemá zmysel. Dosť veľa času som strávil za tým a je mi ľúto to len tak vymazať a tak som si povedal že sa to niekomu možno zíde.

    Čo obsahuje :

    - Admin script
    - VIP script
    - House systém
    - Event systém
    - Anticheat
    - Zamestnania
    - Firmy
    - Skryté balíčky
    - a mnoho iného ..

    Licencia : https://cs.wikipedia.org/wiki/Beerware

    Screens :

     

     

     


    image.jpg

    image.jpg

    image.jpg

    image.jpg

    image.jpg

    image.jpg

    image.jpg

    image.jpg

    image.jpg

    image.jpg



    Videá :

     


    -


    -



    Určite sa tam nájdu nejaké chyby / veci čo by sa dali spraviť aj jednoduchšie ale to už si spravte každý podľa seba. Nedalo sa mi nahrať download do sekcie Ke sťažený tak to dávam sem.
     

  2. Tiež som mal takýto istý problém s DOF2, aj napriek tomu že som pri disconnecte všetkým premenným nastavil hodnotu na 0.

    Vyriešil som to prechodom na klasiku, fread/fwrite.

  3. Tak skús debugnúť aké hodnoty vracia OnPlayerWeaponShot

     

    Tu máš ako na to:

    new STR[512];
    format(STR, sizeof(STR), "playerid = %i | weaponid = %i | hittype = %i | hitid = %i | fX = %f | fY = %f | fZ = %f", playerid, weaponid, hittype, hitid, fX, fY, fZ);
    SCMTA(-1, STR);

  4. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
        if(dialogid == W)
        {
            if(listitem == 0)
            {
            }
            if(listitem == 1)
            {
                new pName[30], string[256];
                new hsway[64]="CH/Info.cfg";
                SetPlayerPosEx(playerid, 1, 2, 3);
                Server[LV]++;
                dini_IntSet("CH/Info.cfg","LasVenturas",Server[LV]);
                GetPlayerName(playerid, pName, 30);
                format(string, 256, "[! Server !] Las Venturas {87C7E1}%s (%dx)!", pName, dini_Int(hsway,"LasVenturas"));
                SendClientMessageToAll(C_WARP, string);
                GameTextForPlayer(playerid, "Las Venturas",2500,1);
            }
            if(listitem == 2)
            {
                PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=35402");
                GameTextForPlayer(playerid, "Playing 181.FM - Chilled...",2500,1);
            }
        }

        if(dialogid == DM)
        {
            if(listitem == 0)
            {
            }
            if(listitem == 1)
            {
                new pName[30], string[256];
                new hsway[64]="CH/Info.cfg";
                SetPlayerPosEx(playerid, 1, 2, 3);
                Server[LV]++;
                dini_IntSet("CH/Info.cfg","LasVenturas",Server[LV]);
                GetPlayerName(playerid, pName, 30);
                format(string, 256, "[! Server !] Las Venturas {87C7E1}%s (%dx)!", pName, dini_Int(hsway,"LasVenturas"));
                SendClientMessageToAll(C_WARP, string);
                GameTextForPlayer(playerid, "Las Venturas",2500,1);
            }
            if(listitem == 2)
            {
                PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=35402");
                GameTextForPlayer(playerid, "Playing 181.FM - Chilled...",2500,1);
            }
        }
       return false;
    }
  5. new bool:porty[MAX_PLAYERS];
    
    /*
         porty[playerid] = false; // porty vypnuté
         porty[playerid] = true; // zapnuté
    */
    
    OnPlayerCommandText(..)
    {
        if(!strcmp("/port", cmdtext))
        {
             if(!porty[playerid]) SendClientMessage(playerid, -1, "Nemáš povolené porty");
             SetPlayerPos(playerid, ...);
             return 1;
        }
        return 0;
    }

    Chýba ti return, SCM vypíše ale portne ho ajtak

×
×
  • Create New...