Jump to content

hopingsteam

Membru
  • Posts

    75
  • Joined

  • Last visited

    Never

Everything posted by hopingsteam

  1. 1) Mi-am luat domeniu&host si as vrea sa fac un ip de genul : rpg.site-ul-meu.ro:7777 2) Vreau sa imi mut userii pe MySQL, cum pot face asta ? (ii am stocati in scriptfiles) ....
  2. Deci, sa inteleg ca imi este imposibil sa redau Kiss FM, Radio Zu, si alte posturi de radio de acest gen ?
  3. [pawn]if (strcmp("/radioon", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_YELLOW, "Selecteaza un post de radio !"); SendClientMessage(playerid, COLOR_YELLOW, "Pentru a opri radioul foloseste [/radiooff]"); ShowPlayerDialog(playerid,4112,DIALOG_STYLE_LIST,"Lista Radio","1. Radio ZU\r\n2. Kiss FM\r\n3. Radio 21","Select", "Cancel"); return 1; } if (strcmp("/radiooff", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_YELLOW, "Acum numai asculti radio !"); SendClientMessage(playerid, COLOR_YELLOW, "Pentru a porni radioul foloseste [/radioon]"); StopAudioStreamForPlayer(playerid); return 1; }[/pawn] Acum partea cu dialog [pawn]if(dialogid == 4112) // Radio Dialog { if(!response) { SendClientMessage(playerid, 0x42F3F198, "Ai inchis dialogul."); return 1; } if(response) { if(listitem == 0) // RadioZu { PlayAudioStreamForPlayer(playerid, "http://www.radiozu.ro/live.m3u"); SendClientMessage(playerid, COLOR_YELLOW, "Pentru a opri radioul foloseste [/radiooff]"); } if(listitem == 1) // Kiss FM { PlayAudioStreamForPlayer(playerid, "http://80.86.106.136/listen.pls"); SendClientMessage(playerid, COLOR_YELLOW, "Pentru a opri radioul foloseste [/radiooff]"); } if(listitem == 2) // Radio 21 { PlayAudioStreamForPlayer(playerid, "http://www.radio21.ro/site/Radio21Live.m3u/");// SendClientMessage(playerid, COLOR_YELLOW, "Pentru a opri radioul foloseste [/radiooff]"); } } return 1; }[/pawn] Cand selectez radio zu ; kiss fm ; ... Nu imi reda nimic in difuzoare ... (dar impuscaturile si restul sunetelor SA:MP mi le reda)
  4. La fel ...... Alte solutii ( ? ... Imi spune (daca le bag pe toate, pe o singura linie): server.pwn(6070) : error 075: input line too long (after substitutions)
  5. [pawn]public IsACopCar(carid) { if(carid == car128 && carid == car129 || carid == car130 || carid == car135 || carid == car136 || carid == car137 || carid == car138 || carid == car144 || carid == car145 || carid == car146 || carid == car147 || carid == car148 || carid == car149 || carid == car150 || carid == car151 || carid == car152|| carid == car106 || carid == car107 || carid == car108 || carid == car109 || carid == car110 || carid == car111 || carid == car112 || carid == car113 || carid == car114 || carid == car115 || carid == car116 || carid == car117 || carid == car118 || carid == car119 || carid == car141 || carid == car142 || carid == car143|| (carid >= car580) && (carid <= car616) || (carid >= car624) && (carid <= car630)) { return 1; } return 0; }[/pawn] De ce imi ia doar masinile 580, 616, 624, 630, iar pe cele dintre ele, nu le ia ? ? ? (ex. 581, 582, 583) ?
  6. warning 209: function "Itter_OnPlayerConnect" should return a value Ce e de facut ?
  7. A trebuie doar la prima linie sa dau, iar urmatoarea a fost rezolvata automat, multumesc mult pentru ajutor :)
  8. Liniile 38195 - 38424 [pawn] if(strcmp(cmd, "/agivelicense", true) == 0 || strcmp(cmd, "/agl", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 1337) { new x_nr[256]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SCM(playerid, COLOR_WHITE, "USAGE: /agivelicense [name] [playerid/PartOfName]"); SCM(playerid, COLOR_WHITE, "Available names: Driving, Pilots, Sailing, Fishing, Weapon ,Passport."); return 1; } if(strcmp(x_nr,"driving",true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SCM(playerid, COLOR_WHITE, "USAGE: /agivelicense driverslicense [playerid/PartOfName]"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "* You've given a Drivers License to %s.",giveplayer); SCM(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Admin %s has given you a Drivers License.",sendername); SCM(giveplayerid, COLOR_LIGHTBLUE, string); PlayerInfo[giveplayerid][pCarLic] = 1; return 1; } } else { SCM(playerid, COLOR_GREY, " That player is Offline!"); return 1; } } else if(strcmp(x_nr,"Pilots",true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SCM(playerid, COLOR_WHITE, "USAGE: /agivelicense Pilotslicense [playerid/PartOfName]"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "* You've given a Pilots License to %s.",giveplayer); SCM(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Admin %s has given you a Pilots License.",sendername); SCM(giveplayerid, COLOR_LIGHTBLUE, string); PlayerInfo[giveplayerid][pFlyLic] = 1; return 1; } } else { SCM(playerid, COLOR_GREY, " That player is Offline!"); return 1; } } else if(strcmp(x_nr,"sailing",true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SCM(playerid, COLOR_WHITE, "USAGE: /agivelicense sailinglicense [playerid/PartOfName]"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "* You've given a Sailing License to %s.",giveplayer); SCM(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Admin %s has given you a Sailing License.",sendername); SCM(giveplayerid, COLOR_LIGHTBLUE, string); PlayerInfo[giveplayerid][pBoatLic] = 1; return 1; } } else { SCM(playerid, COLOR_GREY, " That player is Offline!"); return 1; } } else if(strcmp(x_nr,"fishing",true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SCM(playerid, COLOR_WHITE, "USAGE: /agivelicense fishinglicense [playerid/PartOfName]"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "* You've given a Fishing License to %s.",giveplayer); SCM(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Admin %s has given you a Fishing License.",sendername); SCM(giveplayerid, COLOR_LIGHTBLUE, string); PlayerInfo[giveplayerid][pFishLic] = 1; return 1; } } else { SCM(playerid, COLOR_GREY, " That player is Offline!"); return 1; } } else if(strcmp(x_nr,"weapon",true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SCM(playerid, COLOR_WHITE, "USAGE: /agivelicense weaponlicense [playerid/PartOfName]"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "* You've given a Weapon License to %s.",giveplayer); SCM(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Admin %s has given you a Weapon License.",sendername); SCM(giveplayerid, COLOR_LIGHTBLUE, string); PlayerInfo[giveplayerid][pGunLic] = 1; return 1; } } else { SCM(playerid, COLOR_GREY, " That player is Offline!"); return 1; } } else if(strcmp(x_nr,"all",true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "Utilizare: /agivelicense all [iD / Nume]"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "* Ai dat lui %s toate licentele.",giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Admin %s ti-a dat toate licentele.",sendername); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string); PlayerInfo[giveplayerid][pCarLic] = 1; PlayerInfo[giveplayerid][pBuletin] = 1; PlayerInfo[giveplayerid][pFlyLic] = 1; PlayerInfo[giveplayerid][pBoatLic] = 1; PlayerInfo[giveplayerid][pFishLic] = 1; PlayerInfo[giveplayerid][pGunLic] = 1; PlayerInfo[giveplayerid][pPassPort] = 1; return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " That player is Offline!"); return 1; } } else if(strcmp(x_nr,"passport",true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SCM(playerid, COLOR_WHITE, "USAGE: /agivelicense PassPort [playerid/PartOfName]"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "* You've given a PassPort License to %s.",giveplayer); SCM(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Admin %s has given you a PassPort License.",sendername); SCM(giveplayerid, COLOR_LIGHTBLUE, string); PlayerInfo[giveplayerid][pPassPort] = 1; return 1; } } else { SCM(playerid, COLOR_GREY, " That player is Offline!"); return 1; } } } } return 1; } //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=setchamp=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= if(strcmp(cmd, "/setchamp", true) == 0)[/pawn] gggg.pwn(38195) : warning 217: loose indentation gggg.pwn(38424) : warning 217: loose indentation Am incercat sa fac singur /agl si imi da erori (
  9. Si la "%s a intrat in vehicul." cum as putea pune un timer ?
  10. Daca apasa de mai multe ori o sa ii afiseze Te rog asteapta 5 sec. ... Dar asta va face flood la server ?
  11. Asi dori sa pun o limita la o anumita tasta apasata, adica daca playerul apasa te mai multe ori pe "H" (sa spunem) sa nu se faca spam pe chat cu "Bariera se va deschide" (sau orice ...)
  12. 1. Prima data vom introduce poarta ! [pawn]new poartagri;[/pawn] - Pui unde sunt si celalalte new-uri [pawn]poartagri = CreateObject(object_ID, closed_X, closed_Y, closed_Z, closed_rad_X, closed_rad_Y, closed_rad_Z); //Inlocuiti voi, acesta este doar un exemplu[/pawn] 2. Acum creem usa automata . [pawn]SetTimer("VerificaPoarta",1000,true);[/pawn] - Din cate in cate secunde daca cineva este in preajma portii (1000 - 1 sec.) Mergeti unde aveti celalte forward-uri si puneti: [pawn]forward VerificaPoarta();[/pawn] Iar ceea ce este cel mai complicat, miscarea portii in sine [pawn]public VerificaPoarta() { new poartagri_status; for(new i;i<MAX_PLAYERS;i++) { if(!IsPlayerConnected(i)) continue; if(IsPlayerInRangeOfPoint(i,10.0,closed_X,closed_Y,closed_Z))poartagri_status=1; } if(poartagri_status)MoveObject(mygate, open_X, open_Y, open_Z,vdemiscare); else MoveObject(poartagri, closed_X, closed_Y, closed_Z, vdemiscare); }[/pawn] vdemiscare - viteza de miscare, o inlocuiti voi !
  13. @k3nw00d_kri5ty: Tu ce compilezi acolo ? ? ? change.log ? ? ? @LosTSouL Foloseste Chrome si da click dreapta pe: http://spelsajten.net/userDefineLang.xml si alege "Salveaza link'ul ca (Save link us)"
  14. Ce este gresit ... Daca dau /parcareinfo de la coordonatele de mai sus imi spune ca nu sunt langa parcare, desi eu sunt acolo :(
  15. public OnPlayerSpawn(playerid) { PlayerInfo[playerid][spawnAngle] = 0.0; //so when you leave and another player comes, the camera will start from start PlayerInfo[playerid][spawnDance] = true; //to not execute to much timers ShowPlayerNameTagForPlayer(playerid, i, 0); error 017: undefined symbol "i"
  16. Ca sa nu deschid alt topic: Cum fac ca sa numai vad nici un nume de player ! ! ! As vrea sa fac un movie server !
  17. Deci am asa: if(PlayerInfo[playerid][pAdmin] >= 1) { format(string, sizeof(string), "[Admin]: %s ", text); SetPlayerChatBubble(playerid, string, 0xFFFF00FF||0x008ACCFF||0xD26900FF||0x00A452FF||0x804040FF, 30.0, 8000); } Vreau atunci cand un admin scrie mai mute prop. fiecare prop. sa fie colorata cumva ! Ei bine eu am bagat codul de mai sus si numai negru scrie ( !
  18. Deci ... Gamemode-ul meu NU are nimic ! Bug-ul este urmatorul: Adaugi: si pica server-ul ! ! !Problema e, ca inainte nu pica cand era linia adaugata ! Am incercat cu alte gamemode-uri ! LA FEL ! ! !
  19. Am reparat partial problema, am dat reinstall, cand adaug gamemode-ul meu la server.cfg NU se schimba nimic (server-ul este online), dar nimic nu se schimba (ca si cum nu as fi facut nimic, dar totusi server-ul este online) ! Bun adaug apoi linia plugins in server.cfg si serverul devine DOWN ! http://img3.imageshack.us/img3/9721/samp195z.png http://img832.imageshack.us/img832/4696/samp196k.png Aveti idei ? In schimb ... daca rulez eu server-ul merge TOT ! Dar daca pun acelasi gamemode pe host, NIMIC !
  20. De ex. am comanda [/imprumut (suma)] ... cum pot face o limita la aceasta "suma"
  21. Cauta peste tot la tine in script: Si inlocuieste-o cu
  22. Ai citit macar ce am scris ? Sa vedem ce spune heker :>
  23. Define: KEY_CROUCH Value: 2 Gametext-Key on Foot: ~k~~PED_DUCK~ Gametext-Key in Vehicle: ~k~~VEHICLE_HORN~ Deci ce ai spus tu NU este adevarat ! Sursa: Wiki.sa-mp.com
  24. Intreb aici: Cum pot avea mai multe pickup'uri, nu maxima de 100 ? Pentru ca am 91, si mai am de adaugat ATM'uri si altele ....
  25. Tasta "2" de sus (cea care combinata cu SHIFT da "@"), ce cod are ... nu stiu cum sa spun ... De ex. tasta "H" (claxonul, horn) are KEY_CROUCH ... iar tasta "2" ce "cod" are ?
×
×
  • 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.