Jump to content

NeO

Membru
  • Posts

    254
  • Joined

  • Last visited

    Never

Posts posted by NeO

  1. mda....ms pt sfaturi dar... imi da eroare la net framework 3.5 , si la chestia aia pusa la tutorial (Service pack) spunand ca deja am service pack 3 si nu mai am nevoie de el :D

    si la net frameworK;:

    imi da eroare cand incepe sa se incarce liniile verzi (se incarca foarte repede ,ce nu e normal) apoi imi da eroare fara sami zica nici un text decat :

    ERORR sau cam asa ceva :'( :'(

  2. Buna,am facut ca in acest tutorial http://forum.sa-mp.ro/index.php?topic=3611.0

    Si cand deskis consola rcon , nu e nimic rau ,dar cand se conecteaza cnv la sv da don't sent la sa-mp server(la consola):| si apoi daca scot din server CFG fs-u xStreamo (acolo am obiectele)

    nu mai da don't sent si e totul ok ,din ce cauza sa fie va arat cum am facut

    IN SERVER.cfg este asa:

    echo Executing Server Config...

    lanmode 0

    rcon_password ********

    maxplayers 100

    port 7777

    hostname {**RO**}*************{**RO**}

    gamemode0 RO2 1

    filterscripts  Xstreamo xStreamer Case  animati Drift paint ladmin4v2 bmenu spawner

    announce 1

    query 1

    weburl www.****???.ro

    anticheat 0

    plugins irc SDK xStreamer

    password ***

    IN folderul plugins e asa :

    xstreamercenuebine.png

    in folderul filtrescripts e asa:

    folderfiltrescriptxstre.png

    Uploaded with ImageShack.us

    in xStreamo ( unde am pus obiectele e asa SA FITI ATENTI AICI

    createstreamerpawno.png

    Uploaded with ImageShack.us

    si in consola arata asa:

    consolaxstreamer.png

    Uploaded with ImageShack.us

    Sper sa gasesc o cale

    multumesc mult pt ajutor :-\ ;D

  3. bUNA,am facut ca in tutorialul lui cmg4life ,DESPRE ADAUGAREA UNUI NPC SI la  linia

    [table][tr][td]public OnGameModeInit()

    {

    //npc VitezomanulNPC[/table]

    imi da eroarea asta :

    [table][tr][td]C:\Locker\sa-mp scripting\Tutos StuntDM!!!\Tutos StuntDM\rominpc.pwn(2297) : error 017: undefined symbol "ConnectNPC"

    C:\Locker\sa-mp scripting\Tutos StuntDM!!!\Tutos StuntDM\rominpc.pwn(2302) : warning 225: unreachable code

    Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    1 Error.[/table] ,ADICA NU IMI RECUNOASTE COMANDA CONNECTNPC

    SI VA ARAT SI LINIILE ASTEA:  

    [table][tr][td]}

    public OnGameModeInit()

    {

       

     ConnectNPC("VitezomanulNPC","VitezomanulNPC");

       return 1;

    //sfarsitul npcului :)

    SetGameModeText("Romania.:->Stunt+DM+DRIFT");

    SetWeather(2);

    AllowInteriorWeapons(1);

    SetWorldTime(13);

    ...[...][/table]

    si !!! am pus include-ul

    uitati aici::)

    [table][tr][td]#include <a_npc>[/table],dar degeaba ca numi cunoaste:((:(

    va rog ajutatima si ,am si scriptul gl_npc,care contine:

    //-------------------------------------------------

    //

    //  NPC initialisation for Grand Larceny

    //

    //-------------------------------------------------

    #pragma tabsize 0

    #include <a_samp>

    #include <npc>

    //-------------------------------------------------

    public OnFilterScriptInit()

    {

    ConnectNPC("TrainDriverLV","train_lv");

    ConnectNPC("TrainDriverLS","train_ls");

    ConnectNPC("TrainDriverSF","train_sf");

    ConnectNPC("PilotLV","at400_lv");

    ConnectNPC("PilotSF","at400_sf");

    ConnectNPC("PilotLS","at400_ls");

    // Testing

    //ConnectNPC("TestIdle","onfoot_test");

    //ConnectNPC("TaxiTest","mat_test");

    return 1;

    }

    //-------------------------------------------------

    // IMPORTANT: This restricts NPCs connecting from

    // an IP address outside this server. If you need

    // to connect NPCs externally you will need to modify

    // the code in this callback.

    public OnPlayerConnect(playerid)

    {

    if(IsPlayerNPC(playerid)) {

       new ip_addr_npc[64+1];

       new ip_addr_server[64+1];

       GetServerVarAsString("bind",ip_addr_server,64);

       GetPlayerIp(playerid,ip_addr_npc,64);

       

    if(!strlen(ip_addr_server)) {

       ip_addr_server = "127.0.0.1";

    }

    if(strcmp(ip_addr_npc,ip_addr_server,true) != 0) {

       // this bot is remote connecting

       printf("NPC: Got a remote NPC connecting from %s and I'm kicking it.",ip_addr_npc);

       Kick(playerid);

       return 0;

    }

           printf("NPC: Connection from %s is allowed.",ip_addr_npc);

    }

    return 1;

    }

    //-------------------------------------------------

    public OnPlayerRequestClass(playerid, classid)

    {

    if(!IsPlayerNPC(playerid)) return 0; // We only deal with NPC players in this script

    new playername[64];

    GetPlayerName(playerid,playername,64);

    if(!strcmp(playername,"TrainDriverLV",true)) {

           SetSpawnInfo(playerid,69,255,1462.0745,2630.8787,10.8203,0.0,-1,-1,-1,-1,-1,-1);

    }

    else if(!strcmp(playername,"TrainDriverSF",true)) {

       SetSpawnInfo(playerid,69,255,-1942.7950,168.4164,27.0006,0.0,-1,-1,-1,-1,-1,-1);

    }

    else if(!strcmp(playername,"TrainDriverLS",true)) {

       SetSpawnInfo(playerid,69,255,1700.7551,-1953.6531,14.8756,0.0,-1,-1,-1,-1,-1,-1);

    }

    else if(!strcmp(playername,"PilotLV",true)) {

       SetSpawnInfo(playerid,69,61,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);

    }

    else if(!strcmp(playername,"PilotSF",true)) {

       SetSpawnInfo(playerid,69,61,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);

    }

    else if(!strcmp(playername,"PilotLS",true)) {

       SetSpawnInfo(playerid,69,61,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);

    }

    else if(!strcmp(playername,"TestIdleDriver",true)) {

       SetSpawnInfo(playerid,69,61,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);

    }

    else if(!strcmp(playername,"TaxiTest",true)) {

       SetSpawnInfo(playerid,69,61,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);

    }

    return 0;

    }

    //-------------------------------------------------

    public OnPlayerSpawn(playerid)

    {

    if(!IsPlayerNPC(playerid)) return 1; // We only deal with NPC players in this script

    new playername[64];

    GetPlayerName(playerid,playername,64);

    if(!strcmp(playername,"TrainDriverLV",true)) {

           PutPlayerInVehicle(playerid,1,0);

           SetPlayerColor(playerid,0xFFFFFFFF);

    }

    else if(!strcmp(playername,"TrainDriverSF",true)) {

       PutPlayerInVehicle(playerid,5,0);

       SetPlayerColor(playerid,0xFFFFFFFF);

    }

    else if(!strcmp(playername,"TrainDriverLS",true)) {

       PutPlayerInVehicle(playerid,9,0);

       SetPlayerColor(playerid,0xFFFFFFFF);

    }

    else if(!strcmp(playername,"PilotLV",true)) {

       PutPlayerInVehicle(playerid,13,0);

       SetPlayerColor(playerid,0xFFFFFFFF);

    }

    else if(!strcmp(playername,"PilotSF",true)) {

       PutPlayerInVehicle(playerid,14,0);

       SetPlayerColor(playerid,0xFFFFFFFF);

    }

    else if(!strcmp(playername,"PilotLS",true)) {

       PutPlayerInVehicle(playerid,15,0);

       SetPlayerColor(playerid,0xFFFFFFFF);

    }

    else if(!strcmp(playername,"TestIdleDriver",true)) {

       PutPlayerInVehicle(playerid,43,0);

       SetPlayerColor(playerid,0xFFFFFFFF);

    }

    else if(!strcmp(playername,"TaxiTest",true)) {

       PutPlayerInVehicle(playerid,968,0);

       SetPlayerColor(playerid,0xFFFFFFFF);

    }

    return 1;

    }

    //-------------------------------------------------

    // EOF

    si aicia ,daca dau COMPILE fara sa modfiC ABSOLUT nimic imi da tot acea eroare "StuntDM\rominpc.pwn(2297) : error 017: undefined symbol "ConnectNPC"" , nu mil gaseste,oare incul nu este bun? daca aveti acest inc va rog punetil aici daca vreti

    multumesc pt ajutor:)

    Va rog :) chiar vreau npc...sa se plimbe...ahh..

    Sper sa ma ajutati VAAA ROOOG

  4. da  un  warning...

    ce nu e bine?

    la toti da warningul asta: C:\Locker\sa-mp scripting\coool sv\coool sv\gamemodes\football.pwn(584) : warning 219: local variable "lastentered" shadows a variable at a preceding level

    Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    1 Warning.

    sau doar mie :P

  5. ;) si eu tot asa faceam la inceput :)) modificam eu acolo textele ,dadeam X, imi zicea daca vreau sa salvez modificarile ,eu dadeam YES, cand ma duceam in joc, pff tot textele alea apareau apoi dupa foarte mult timp(nu exagerez)

    Am descoperit minunatia butonului "COMPILE" ahh

    opr003X9.gif

    gif_anime_3d_023.gif

    bannerwwwmare.png

  6. salut,vreau sa stiu si eu ceva                                                          gif_anime_3d_042.gif    

    cum pun o mapa intrun gm,dar si comanda

    obiectele mapei le pun la public OnGameModeInit()

    {  cumva?

    uite cum am pus eu o mapa la public OnGameModeInit()

    {

    public OnGameModeInit()

    {

    SetGameModeText("Romania Stunt Star");

    // CLUB IN APA

     CreateObject(8154, 496.32897949219, -2181.021484375, -26.156784057617, 0, 0, 0);

    CreateObject(8154, 496.328125, -2181.021484375, -26.156784057617, 0, 0, 178.87390136719);

    CreateObject(5497, 484.67581176758, -2221.1005859375, -22.702657699585, 0, 332.20458984375, 272.65869140625);

    CreateObject(18090, 471.85073852539, -2143.7836914063, -26.694444656372, 0, 0, 180.63171386719);

    CreateObject(14537, 490.20693969727, -2148.2145996094, -27.311450958252, 0, 0, 0);

    CreateObject(14791, 511.05816650391, -2145.5471191406, -27.21275138855, 0, 0, 0);

    CreateObject(1712, 488.98937988281, -2154.4428710938, -29.2578125, 0, 0, 180.63500976563);

    CreateObject(1712, 491.35855102539, -2154.5485839844, -29.2578125, 0, 0, 180.63171386719);

    CreateObject(1712, 498.25457763672, -2148.3703613281, -29.2578125, 0, 0, 269.95666503906);

    CreateObject(1712, 498.28515625, -2145.111328125, -29.2578125, 0, 0, 269.95056152344);

    CreateObject(1712, 488.29229736328, -2140.6740722656, -29.2578125, 0, 0, 359.279296875);

    CreateObject(1712, 481.89950561523, -2150.6850585938, -29.2578125, 0, 0, 94.553833007813);

    CreateObject(1811, 508.86123657227, -2148.1518554688, -27.712604522705, 0, 0, 204.455078125);

    CreateObject(1811, 513.33087158203, -2143.7802734375, -27.712604522705, 0, 0, 35.009033203125);

    CreateObject(1720, 514.49841308594, -2142.3520507813, -29.2578125, 0, 0, 319.58453369141);

    CreateObject(1720, 507.734375, -2149.0556640625, -29.2578125, 0, 0, 132.99499511719);

    CreateObject(1712, 505.05236816406, -2145.0012207031, -29.2578125, 0, 0, 94.824645996094);

    CreateObject(1712, 505.39279174805, -2147.7744140625, -29.2578125, 0, 0, 94.822998046875);

    CreateObject(1712, 510.08987426758, -2151.3413085938, -29.2578125, 0, 0, 176.2080078125);

    CreateObject(1712, 512.50079345703, -2151.5930175781, -29.2578125, 0, 0, 178.18920898438);

    CreateObject(2230, 514.70129394531, -2139.8051757813, -27.229299545288, 0, 0, 0);

    CreateObject(2230, 511.95858764648, -2139.6005859375, -27.229299545288, 0, 0, 0);

    CreateObject(11495, 493.99826049805, -2266.8698730469, 0, 0, 0, 185.14501953125);

    CreateObject(11495, 478.36743164063, -2267.7690429688, 0, 0, 0, 0);

    CreateObject(3279, 477.4833984375, -2174.01953125, -29.2578125, 0, 0, 0);

    CreateObject(16093, 478.04083251953, -2189.7893066406, -24.97696685791, 0, 0, 0);

    CreateObject(8614, 484.10900878906, -2189.1337890625, -27.033531188965, 0, 13.894989013672, 89.325012207031);

    CreateObject(8614, 472.05914306641, -2193.3862304688, -27.033531188965, 0, 13.892211914063, 269.95928955078);

    CreateObject(1985, 517.33172607422, -2143.4770507813, -26.11607170105, 0, 0, 0);

    CreateObject(1985, 518.65161132813, -2143.7387695313, -26.11607170105, 0, 0, 0);

    CreateObject(1985, 520.107421875, -2143.791015625, -26.11607170105, 0, 0, 0);

    CreateObject(1985, 516.42864990234, -2143.486328125, -26.11607170105, 0, 0, 0);

    CreateObject(3267, 479.76889038086, -2179.3718261719, 0, 0, 0, 270.67498779297);

    CreateObject(3267, 479.73803710938, -2181.87109375, 0, 0, 0, 274.64013671875);

    CreateObject(3267, 479.70068359375, -2184.87109375, 0, 0, 0, 276.62121582031);

    CreateObject(3267, 479.65441894531, -2188.62109375, 0, 0, 0, 276.61926269531);

    CreateObject(3267, 479.61157226563, -2192.12109375, 0, 0, 0, 278.60424804688);

    CreateObject(3267, 479.56555175781, -2195.87109375, 0, 0, 0, 278.60229492188);

    CreateObject(3267, 479.53527832031, -2199.12109375, 0, 0, 0, 280.58728027344);

    CreateObject(3267, 479.53674316406, -2202.37109375, 0, 0, 0, 280.58532714844);

    CreateObject(3267, 479.5380859375, -2206.37109375, 0, 0, 0, 282.5703125);

    CreateObject(3267, 479.5400390625, -2210.37109375, 0, 0, 0, 282.568359375);

    CreateObject(3267, 479.54211425781, -2214.62109375, 0, 0, 0, 282.568359375);

    CreateObject(3267, 479.54406738281, -2218.87109375, 0, 0, 0, 284.55334472656);

    si sub mapa e:

    //////////////// ========    END =============//////////////

    SetWeather(2);

    AllowInteriorWeapons(1);

    SetWorldTime(13);

    Interior2 = CreateMenu("~y~Interiors", 1,20,120,150,40);

      AddMenuItem(Interior2, 0, "24/7's");

      AddMenuItem(Interior2, 0, "Aeropoarte");

      AddMenuItem(Interior2, 0, "Amunitions");

       AddMenuItem(Interior2, 0, "Case");

       AddMenuItem(Interior2, 0, "Misiuni");

       AddMenuItem(Interior2, 0, "Misiuni 2");

       AddMenuItem(Interior2, 0, "Interioare Nefolosite");

       AddMenuItem(Interior2, 0, "Cazinouri si Magazine");   etc..mai departe

    daca am pus asa mapa e bine? sau unde o pun /?

    dar comanda te tele catre ea unde o pun ???

    multumesc pt ajutor;)

    opr003X9.gifcar231.gif  gif_anime_3d_047.gif

  7. Buna , am acest cod:

    //==============================================================================

    // Advertisement Check

    //==============================================================================

    stock AdvertisementCheck(string[])

    {

    if(string[0])

    {

    if(!strfind(string,"www.",false) || !strfind(string,"http://",false)

    || !strfind(string,".com",false) || !strfind(string,".net",false)

    || !strfind(string,".de",false)  || !strfind(string,".org",false))

      return true;

     

    new c=1,idx,tmp[32],ip[4];

    for(new i=0;i<strlen(string);i++)

      if(string==' ')

      c++;

    for(new i=0;i<c;i++)

    {

        idx=0;

        tmp = L_strtok(string,idx);

        idx=0;

        tmp = L_strtok(tmp,idx,':');

    ip=SplitIP(tmp);

    if(ip[0] && ip[1] && ip[2] && ip[3]) // We have found and IP :o

      return true;

    }

    }

    return false;

    }

    DAR NUSTIU CUM SA`L pun in gm ,daca ma poate cineva ajuta ,va roog :-[ :P ::),ziceti-mi macar la c e linie sa-l pun ,sau unde [LINIA E LUATA DE LA SCRIPTUL "LUXADMIN",03.A,EU VREAU SA PUN CODUL LA 02.X ,IN GM,OARE MERGE?  MULTUMESC MULT

    EDIT: SI APP,de ce am 1 steluta adica incepator,aveam 2 stele - avanstat de ce /? nu`i drept

  8. Buna,am si eu o idee,sa fie mai usor,sa nu cautam ca disperatii inc-uri,aici puteti sa postati linkuri de descarcare inc-uri ,O COLECTIE,aici sa fie muuuulte inc-uri,caci fara ele nu functioneaza sa compilezi cu PAWNO :P          VA ROG,POSTATI AICI INC-uri!  ,Bine inteles daca este deacord Farse,administratorul,si nu are nimic in-potriva.

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