Jump to content

maxiKINGdavid

Uživatel
  • Příspěvků

    19
  • Registrován

  • Aktivní

Příspěvky posted by maxiKINGdavid

  1. Cs to som zas ja:

     

    Hlada filescript pomocou ktoreho by som si mohol na web zavesit mapu servera na ktorej by ukazovalo aky hrac je prihlaseny a kde sa nachadza

    Nieco podobne ako napr. minecraft dynamic map, priklad mapa mojho servera: http://mc7.crew.sk:8888

     

    +

     

    1. Nepiste mi ze to najdem tu na fore pretoze jedine co som nasiel tak odkaz bol mrtvy

    2. Nepiste mi ze to najdem na www.google.com pretoze tam som nasiel iba uz vytvorene mapy

  2. Vyjadroval som sa k tomu uz v tycho temach: http://pawno.cz/topic/44948-som-drevo/ a http://pawno.cz/topic/44910-automaticke-announce/

     

    No zhrniem to este raz:

     

    Mam takyto filescript:

       #include <a_samp>
       #define SUBOR "Reklamy.txt"
       #define TIMER 180
       #define SEC(%0) %0*1000
       //#define DEBUG
       forward SendRandomMessage();
       public OnFilterScriptInit()
       {
    	    if(!fexist(SUBOR)){
    	    print( "============= Reklama System v1.0 by QWER =============");
    	    printf("Súbor \"%s\" sa nenašiel. Server bol vypnutý !",SUBOR);
    	    SendRconCommand("exit");
    	    }else{
    	    print( "============= Reklama System v1.0 by QWER =============");
    	    print("Súbor sa našiel, všetko OK !");
    	    }
    	    SetTimer("SendRandomMessage",SEC(TIMER),true);
    	    return 1;
       }
       public SendRandomMessage(){
       new File:a = fopen(SUBOR,io_read);
       new b,str[128];
       while(fread(a,str)){
       b++;
       }
       if(b == 0){
       print( "============= Reklama System v1.0 by QWER =============");
       printf("Súbor \"%s\" je prázdny (Chýbajú tam reklamy). Server bol vypnutý !",SUBOR);
       SendRconCommand("exit");
       }
       new r = random(+1;
       b = 0;
       fclose(a);
       a = fopen(SUBOR,io_read);
       while(fread(a,str)){
       if(b == r) {
       DelChar(str);
       #if defined DEBUG
       print(str);
       #endif
       GameTextForAll(str, 5000, 4);
       break;
       }
       b++;
       }
       fclose(a);
       }
       stock DelChar(tstring[])
       {
    	    new ln = strlen(tstring);
    	    if(tstring[ln-2] == '\r')tstring[ln-2] = '\0';
    	    if(tstring[ln-1] == '\n')tstring[ln-1] = '\0';
       }
    

     

    Je to vlastne toto len pozmenene na announce: http://pawno.cz/files/file/19-reklama-system/

     

    Vsetko mam urobene aj v Reklama.txt napisane reklamy ale nic.

     

    !!!PLS HELP!!!

  3. v scripte treba zmeniť

    SendClientMessageToAll(-1,str);

    na

    GameTextForAll(str, 5000, 4);

     

    NAOZAJ je to vsetko co treba zmenit pretoze

    [18:46:38] Loading filterscript 'reklama.amx'...

    [18:46:38] ============= Reklama System v1.0 by QWER =============

    [18:46:38] Súbor sa našiel, všetko OK !

     

    Ale reklamy sa nezobrazuju a v Reklamy.txt mam iba prvy riadok a v nom toto: prajeme prijemne hranie na nasich serveroch

  4. Prosim o pomoc zohnal som si toto

    #include <a_samp>
    #define SUBOR "Reklamy.txt"
    #define TIMER 180
    #define SEC(%0) %0*1000
    //#define DEBUG
    forward SendRandomMessage();
    public OnFilterScriptInit()
    {
    if(!fexist(SUBOR)){
    print( "============= Reklama System v1.0 by QWER =============");
    printf("Súbor \"%s\" sa nenašiel. Server bol vypnutý !",SUBOR);
    SendRconCommand("exit");
    }else{
    print( "============= Reklama System v1.0 by QWER =============");
    print("Súbor sa našiel, všetko OK !");
    }
    SetTimer("SendRandomMessage",SEC(TIMER),true);
    return 1;
    }
    public SendRandomMessage(){
    new File:a = fopen(SUBOR,io_read);
    new b,str[128];
    while(fread(a,str)){
    b++;
    }
    if(b == 0){
    print( "============= Reklama System v1.0 by QWER =============");
    printf("Súbor \"%s\" je prázdny (Chýbajú tam reklamy). Server bol vypnutý !",SUBOR);
    SendRconCommand("exit");
    }
    new r = random( +1;
    b = 0;
    fclose(a);
    a = fopen(SUBOR,io_read);
    while(fread(a,str)){
    if(b == r) {
    DelChar(str);
    #if defined DEBUG
    print(str);
    #endif
    GameTextForAll(str, 5000, 4);
    break;
    }
    b++;
    }
    fclose(a);
    }
    stock DelChar(tstring[])
    {
    new ln = strlen(tstring);
    if(tstring[ln-2] == '\r')tstring[ln-2] = '\0';
    if(tstring[ln-1] == '\n')tstring[ln-1] = '\0';
    }
    

    viem ze je to script ale neviem co s tym mam robit chcem ta dat ako script na server ale neviem ako pokracovat mam iba toto. Pls o pomoc. Nepiste ze som deb*l ale vazne neviem. :d

  5. #include <a_samp>
    #define SUBOR "Reklamy.txt"
    #define TIMER 180
    #define SEC(%0) %0*1000
    //#define DEBUG
    forward SendRandomMessage();
    public OnFilterScriptInit()
    {
    if(!fexist(SUBOR)){
    print( "============= Reklama System v1.0 by QWER =============");
    printf("Súbor \"%s\" sa nenašiel. Server bol vypnutý !",SUBOR);
    SendRconCommand("exit");
    }else{
    print( "============= Reklama System v1.0 by QWER =============");
    print("Súbor sa našiel, všetko OK !");
    }
    SetTimer("SendRandomMessage",SEC(TIMER),true);
    return 1;
    }
    public SendRandomMessage(){
    new File:a = fopen(SUBOR,io_read);
    new b,str[128];
    while(fread(a,str)){
    b++;
    }
    if(b == 0){
    print( "============= Reklama System v1.0 by QWER =============");
    printf("Súbor \"%s\" je prázdny (Chýbajú tam reklamy). Server bol vypnutý !",SUBOR);
    SendRconCommand("exit");
    }
    new r = random( +1;
    b = 0;
    fclose(a);
    a = fopen(SUBOR,io_read);
    while(fread(a,str)){
    if(b == r) {
    DelChar(str);
    #if defined DEBUG
    print(str);
    #endif
    GameTextForAll(str, 5000, 4);
    break;
    }
    b++;
    }
    fclose(a);
    }
    stock DelChar(tstring[])
    {
    new ln = strlen(tstring);
    if(tstring[ln-2] == '\r')tstring[ln-2] = '\0';
    if(tstring[ln-1] == '\n')tstring[ln-1] = '\0';
    }
    

     

    Je vsetk0 spravne?

     

    + ako sa ma volat ten subor vo scriptfiles?

×
×
  • Create New...