Szerző Téma: Sorompó script  (Megtekintve 1355 alkalommal)

Sorompó script
« Dátum: 2013. Június 27. - 14:07:50 »
0 Show voters
Sziasztok! Valaki készitene nekem egy sorompó scriptet? Nagyon megköszönném!
Parancs a nyitáshoz: /h-nyit
Parancs a záráshoz: /h-zar
Koordináták:
Nyitott Pozició: -961.89941, 2709.5, 45.7
Zárt Pozició: Ugyan annak jelzi ki az MTA csak a rotációja más, X,Y,Z alatt ezt irja: 0.0000000,000.0, 0.0000

xD1999

  • Vendég
Sorompó script
« Válasz #1 Dátum: 2013. Június 27. - 14:34:20 »
0 Show voters
Kéne az object a CreateObject köszi és megcsinálom neked!

Sorompó script
« Válasz #2 Dátum: 2013. Június 27. - 14:49:56 »
0 Show voters
Idézetet írta: xD1999 date=1372336460\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"38958\" data-ipsquote-contentclass=\"forums_Topic
Kéne az object a CreateObject köszi és megcsinálom neked!
 
CreateObject(968, -961.79999, 2709.6001, 45.5, 0.251, 356.75, 6.013); Alapbol nyitva kell legyen

xD1999

  • Vendég
Sorompó script
« Válasz #3 Dátum: 2013. Június 27. - 15:25:51 »
0 Show voters
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
new kapu;
kapu = CreateObject(968, -961.79999, 2709.6001, 45.5, 0.251, 356.75, 6.013);
print(\"\\n--------------------------------------\");
print(\" Blank Filterscript by your name here\");
print(\"--------------------------------------\\n\");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(\"/h-nyit\", cmdtext, true, 10) == 0)
{
MoveObject(kapu, -961.79999, 2709.6001, 45.5, 0.251, 356.75, 6.013,5);
return 1;
}
if (strcmp(\"/h-nyit\", cmdtext, true, 10) == 0)
{
MoveObject(kapu, -961.79999, 2709.6001, 45.5, 0.0000, 0.0000, 0.0000,5);
return 1;
}
return 0;
}
#endif

 
Tessék használd egésségel

Sorompó script
« Válasz #4 Dátum: 2013. Június 27. - 15:38:24 »
0 Show voters
Idézetet írta: xD1999 date=1372339551\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"38958\" data-ipsquote-contentclass=\"forums_Topic

// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
new kapu;
kapu = CreateObject(968, -961.79999, 2709.6001, 45.5, 0.251, 356.75, 6.013);
print(\"\\n--------------------------------------\");
print(\" Blank Filterscript by your name here\");
print(\"--------------------------------------\\n\");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(\"/h-nyit\", cmdtext, true, 10) == 0)
{
MoveObject(kapu, -961.79999, 2709.6001, 45.5, 0.251, 356.75, 6.013,5);
return 1;
}
if (strcmp(\"/h-nyit\", cmdtext, true, 10) == 0)
{
MoveObject(kapu, -961.79999, 2709.6001, 45.5, 0.0000, 0.0000, 0.0000,5);
return 1;
}
return 0;
}
#endif

 
Tessék használd egésségel
 
Nem hozza létre az objectet, és a kód sem megy hozzá

xD1999

  • Vendég
Sorompó script
« Válasz #5 Dátum: 2013. Június 27. - 18:44:00 »
0 Show voters
Rakd be a módodba
mód elejére
new kapu;
Utána a OnGameModeInit alá a createobjectet
a többit a parancsokhoz nálam müködik!

Nem elérhető Jippy

  • 618
    • Profil megtekintése
Sorompó script
« Válasz #6 Dátum: 2013. Június 27. - 18:50:51 »
0 Show voters
#include <a_samp>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
        new kapu;
        kapu = CreateObject(968, -961.79999, 2709.6001, 45.5, 0.251, 356.75, 6.013);
        print(\"\\n--------------------------------------\");
        print(\" Blank Filterscript by your name here\");
        print(\"--------------------------------------\\n\");
        return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
        if (strcmp(\"/h-nyit\", cmdtext, true, 10) == 0)
        {
                MoveObject(kapu, -961.79999, 2709.6001, 45.5, 0.251, 356.75, 6.013,5);
                return 1;
        }
       
        if (strcmp(\"/h-nyit\", cmdtext, true, 10) == 0)
        {
                MoveObject(kapu, -961.79999, 2709.6001, 45.5, 0.0000, 0.0000, 0.0000,5);
                return 1;
        }
        return 0;
}
#endif

 
Ez azért nem lesz jó mert mind a két parancs /h-nyit
Így lesz jó:
 
#include <a_samp>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
        new kapu;
        kapu = CreateObject(968, -961.79999, 2709.6001, 45.5, 0.251, 356.75, 6.013);
        print(\"\\n--------------------------------------\");
        print(\" Blank Filterscript by your name here\");
        print(\"--------------------------------------\\n\");
        return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
        if (strcmp(\"/h-nyit\", cmdtext, true, 10) == 0)
        {
                MoveObject(kapu, -961.79999, 2709.6001, 45.5, 0.251, 356.75, 6.013,5);
                return 1;
        }
       
        if (strcmp(\"/h-zar\", cmdtext, true, 10) == 0)
        {
                MoveObject(kapu, -961.79999, 2709.6001, 45.5, 0.0000, 0.0000, 0.0000,5);
                return 1;
        }
        return 0;
}
#endif

xD1999

  • Vendég
Sorompó script
« Válasz #7 Dátum: 2013. Június 27. - 19:49:05 »
+1 Show voters
Elírtam bocsánatotokat kérem nagyon szgyelem magam ezért a végzetes hibáért!
 

    // This is a comment
    // uncomment the line below if you want to write a filterscript
    //#define FILTERSCRIPT
     
    #include <a_samp>
    #if defined FILTERSCRIPT
     
    public OnFilterScriptInit()
    {
            new kapu;
            kapu = CreateObject(968, -961.79999, 2709.6001, 45.5, 0.251, 356.75, 6.013);
            print(\"\\n--------------------------------------\");
            print(\" Blank Filterscript by your name here\");
            print(\"--------------------------------------\\n\");
            return 1;
    }
     
    public OnPlayerCommandText(playerid, cmdtext[])
    {
            if (strcmp(\"/h-nyit\", cmdtext, true, 10) == 0)
            {
                    MoveObject(kapu, -961.79999, 2709.6001, 45.5, 0.251, 356.75, 6.013,5);
                    return 1;
            }
           
            if (strcmp(\"/h-zar\", cmdtext, true, 10) == 0)
            {
                    MoveObject(kapu, -961.79999, 2709.6001, 45.5, 0.0000, 0.0000, 0.0000,5);
                    return 1;
            }
            return 0;
    }
    #endif
     [code]
Javitotam próbáld ki

Sorompó script
« Válasz #8 Dátum: 2013. Június 28. - 14:53:40 »
0 Show voters
Idézetet írta: Jippy date=1372351851\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"38958\" data-ipsquote-contentclass=\"forums_Topic

#include <a_samp>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
        new kapu;
        kapu = CreateObject(968, -961.79999, 2709.6001, 45.5, 0.251, 356.75, 6.013);
        print(\"\\n--------------------------------------\");
        print(\" Blank Filterscript by your name here\");
        print(\"--------------------------------------\\n\");
        return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
        if (strcmp(\"/h-nyit\", cmdtext, true, 10) == 0)
        {
                MoveObject(kapu, -961.79999, 2709.6001, 45.5, 0.251, 356.75, 6.013,5);
                return 1;
        }
       
        if (strcmp(\"/h-nyit\", cmdtext, true, 10) == 0)
        {
                MoveObject(kapu, -961.79999, 2709.6001, 45.5, 0.0000, 0.0000, 0.0000,5);
                return 1;
        }
        return 0;
}
#endif

 
Ez azért nem lesz jó mert mind a két parancs /h-nyit
Így lesz jó:
 
#include <a_samp>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
        new kapu;
        kapu = CreateObject(968, -961.79999, 2709.6001, 45.5, 0.251, 356.75, 6.013);
        print(\"\\n--------------------------------------\");
        print(\" Blank Filterscript by your name here\");
        print(\"--------------------------------------\\n\");
        return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
        if (strcmp(\"/h-nyit\", cmdtext, true, 10) == 0)
        {
                MoveObject(kapu, -961.79999, 2709.6001, 45.5, 0.251, 356.75, 6.013,5);
                return 1;
        }
       
        if (strcmp(\"/h-zar\", cmdtext, true, 10) == 0)
        {
                MoveObject(kapu, -961.79999, 2709.6001, 45.5, 0.0000, 0.0000, 0.0000,5);
                return 1;
        }
        return 0;
}
#endif

 

Kezdõ scripter vagyok, azért annyira hüllye nem vagyok hogy ne irtam volna át.

Dupla hozzászólás automatikusan összefûzve. ( 2013. Június 28. - 14:54:20 )


Elírtam bocsánatotokat kérem nagyon szgyelem magam ezért a végzetes hibáért!
 

    // This is a comment
    // uncomment the line below if you want to write a filterscript
    //#define FILTERSCRIPT
     
    #include <a_samp>
    #if defined FILTERSCRIPT
     
    public OnFilterScriptInit()
    {
            new kapu;
            kapu = CreateObject(968, -961.79999, 2709.6001, 45.5, 0.251, 356.75, 6.013);
            print(\"\\n--------------------------------------\");
            print(\" Blank Filterscript by your name here\");
            print(\"--------------------------------------\\n\");
            return 1;
    }
     
    public OnPlayerCommandText(playerid, cmdtext[])
    {
            if (strcmp(\"/h-nyit\", cmdtext, true, 10) == 0)
            {
                    MoveObject(kapu, -961.79999, 2709.6001, 45.5, 0.251, 356.75, 6.013,5);
                    return 1;
            }
           
            if (strcmp(\"/h-zar\", cmdtext, true, 10) == 0)
            {
                    MoveObject(kapu, -961.79999, 2709.6001, 45.5, 0.0000, 0.0000, 0.0000,5);
                    return 1;
            }
            return 0;
    }
    #endif
     [code]
Javitotam próbáld ki

 

[/quote]
Benyomom a módba, remélem megy.

Dupla hozzászólás automatikusan összefûzve. ( 2013. Június 28. - 15:06:14 )


Elírtam bocsánatotokat kérem nagyon szgyelem magam ezért a végzetes hibáért!
 

    // This is a comment
    // uncomment the line below if you want to write a filterscript
    //#define FILTERSCRIPT
     
    #include <a_samp>
    #if defined FILTERSCRIPT
     
    public OnFilterScriptInit()
    {
            new kapu;
            kapu = CreateObject(968, -961.79999, 2709.6001, 45.5, 0.251, 356.75, 6.013);
            print(\"\\n--------------------------------------\");
            print(\" Blank Filterscript by your name here\");
            print(\"--------------------------------------\\n\");
            return 1;
    }
     
    public OnPlayerCommandText(playerid, cmdtext[])
    {
            if (strcmp(\"/h-nyit\", cmdtext, true, 10) == 0)
            {
                    MoveObject(kapu, -961.79999, 2709.6001, 45.5, 0.251, 356.75, 6.013,5);
                    return 1;
            }
           
            if (strcmp(\"/h-zar\", cmdtext, true, 10) == 0)
            {
                    MoveObject(kapu, -961.79999, 2709.6001, 45.5, 0.0000, 0.0000, 0.0000,5);
                    return 1;
            }
            return 0;
    }
    #endif
     [code]
Javitotam próbáld ki

 

[/quote]
Beraktam a módba, tökéletesen ment, csak a koordinátákat kellet kicseréljem! Ment a +!
« Utoljára szerkesztve: 2013. Június 28. - 15:06:14 írta Zalakaka45 »

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal