Jump to content

XFawkes

Members
  • Posts

    95
  • Joined

  • Last visited

Everything posted by XFawkes

  1. NVM the code works, the problem is that my mta server hoster allows only 22027 HTTP port which is closed / blocked by firewall on the web server. Any possibilites how to send the data from 1 to 2 servers? Hello, I am trying to create a server monitor on my website. The lua code looks like this: resource: WebSend It works, the function is exported and when I am trying to connect from my browser: IP:Port/WebSend/call/sendInfoHTTP I get the correct results. The problem is that when I am trying to do it on my webside I can't connect to the game server [which stands on a different hoster]. My PHP code: I get an error message: the mta_sdk.php file I am using:
  2. Zainstaluj aktualizację /beta /nightly do MTA, powinny te opcje się ukazac w settings https://nightly.multitheftauto.com/
  3. I tried fread and file_get_contents and It seems that this is working, because when I am outputing the string version of an image I see a code in the browser, but when I am trying to send it to MTA, MTA outputs nil all the time. <?php include( "mta_sdk.php" ); $input = mta::getInput(); $player = $input[0]; $url = $input[1]; $str = file_get_contents($url); mta::doReturn($player,$str); ?> function imageURL(thePlayer,cmd,url) callRemote ( "http://mywebsite.com/image.php", mail_return, thePlayer, url) end addCommandHandler("url",imageURL) function mail_return(player,str) outputConsole(player) -- returns me as an element outputConsole(str) -- returns always 'nil' end
  4. I need your help about PHP_SDK plugin. I know how to return strings through php, so I just ask: How can I return an image to the MTA? doReturn - returns nil all the time I tried converting image to a string , but dxCreateTexture don't treat that string as a pixels. Maybe do you know how to convert it so MTA will understand the code? Also tied sending an image to a server [ftp] but my php server do not allow ftp connections. Any clues?
  5. Praca listonosza, zawsze chcialem to oskryptować ^^ Gracz może napisać list do innego gracza będąc tylko na poczcie [interior zrobic] lub przy skrzynce na listy. Listonosz jak jest na serverze, podchodzi do skrzynki/idzie na pocztę odbiera wszystkie listy. Na mapie oznaczeni zostają wszyscy gracze/ich mieszkania. Listonosz oczywiście ma rozwozić je Gracz online dostaje list od listonosza i go może przeczytać. Gracz off-line po dołączeniu do servera dostaje komunikat, że dostal list (bo wcześniej listonosz zaniósł go do jego domu) Proste a jakie oryginalne
  6. Jestem programistą LUA. Możemy się jakoś dogadać. Skontaktuj się ze mną przez GG: 551319 [przedstaw się]
  7. Believe, ja jestem programistą LUA. Możemy rozpocząć współpracę. Skontaktuj się ze mną przez Gadu Gadu: 551319 Pozdrawiam, ~[EPG]~Puma/XFawkes
  8. XFawkes

    Crashes

    No, I was testing my scripts at 3 different places: - my local PC [W7] - works perfectly , no timed outs - server maxrate.pl [Linux] - works perfectly , no timed outs - dedicaded server [W Server] - timed outs players I am asking what things can cause timed outs and crashes if it is not a script bug
  9. XFawkes

    Scripts

    try to put killmessages.zip to [gameplay] folder
  10. radar/hud/bars are build in GTASA function too but I still can turn them off using this: showPlayerHudComponent SO I am wondering if is there any simmilar way
  11. Is there any way to disable that health 'green->red' triangles above ped/players heads when I am targeting on them ? This green Health display above GroveSt. Member http://img11.imageshack.us/img11/7315/67495793na5.jpg
  12. XFawkes

    Crashes

    Hello I am scripting a server and everything is fine on my local test server (on my PC) Windows 7 SP1 64 bit Server was working perfectly on an other hosting too: Debian Lenny x64 But when I moved it to the dedicated server It started crashing all players. It makes people loosing connection or just crashes their MTAs. The crashes are randomly, it can kick 1 player or all of them every ~5-10 minutes. Ive noticed my ping is stable, but a few seconds before timed out it riches 500/600. Windows Server 2008 R2 Standard Server is using local [didicaded] MQSQL database, but it is not a reason (checked with another DB) I am asking what reasons can make server start kicking people? I don't think it is a script bug, because while playing at my local PC or Debian Lenny for 1 hour noone got timed out. Please help me
  13. http://www.livestream.com/chucklesstrea ... m=ui-thumb 27:17 - starts
  14. bo masz tam to: addEventHandler("onClientGUIClick", GUIEditor_Button[6], kontrola)
  15. I just would like to show you my map for European Pro Gamers Tournament: I didn't made this videos - I found them More info here: http://www.team-epg.com/index.php?topic=3748.0 You can see the oldest versions at the YT videos - Now It works even better 3rd video was created lately
  16. Eh.. But maybe is there any way to modify the beachball dynamic ? To make it not heavy as it is now ?
  17. viewtopic.php?f=101&t=33922 Przetłumaczone: Cześć, Zrobiłem ładną dużą piłkę dla GTA w 3DS MAXie (ball.dff | ball.col | ball.txd) [chce zrobić gamemoda football] Działa ona w GTA, ale chciałbym była dynamiczna (zeby zachowywala sie jak pilka) Kiedy podmienilem ja za zwykly statyczny obiekt, to ona tez byla statyczna, kiedy zamienilem ją za dyn_quaryrock (taka skale ruchoma) to juz ruszala sie ale nie zachowywala sie poprawnie (skala nie jest kula tylko dziwnym ksztaltem), wiec szukalem innych obiektów i znalazlem pilke plazowa, ale jak podmienilem, to pilka wydawala sie bardzo ciezka, trudno ja bylo poruszyc. Czy jest jakis sposob, aby ustawic/stworzyc wlasną dynamike obiektu?
  18. Hello, I created a nice big ball for GTA in 3DS MAX. (ball.dff | ball.col | ball.txd) [i would like to script Football map] It works in GTA, but I would like to make it dynamic (I would like to let it behave/bounce like a real ball) When I replaced it with normal static object then it was only static, when I replaced it with dyn_quaryrock then it was moving, but I didn't like it. (dyn_quaryrock - is not a sphere and it was not rolling correctly). I was looking for other dynamic objects and I found beachball. When I replaced my ball with it, it was rolling correctly, but It makes me feel that the ball is too heavy (because of this type of dynamic, rolling very slow) Is there any way to create my own dynamic script?
  19. I won't comment this one. No-one will create server / write gamemode / write scripts for free. It is life
  20. Are you looking for a scripter who will write your own server gamemode? Would you like to get a cheap scripts to your server? or maybe You need some help with LUA? My name is Patrick and I am studying TI at university of technology. I am scripting in LUA for more than 1 year. I scripted a few DD/DM servers and owners were so happy. Call me if you want to get more info: - XFawkes Please share your ideas with me, If it is possible then I will do it. See Ya later Cheers Puma
  21. function setTeams() if getElementModel(source) == 78 then setPlayerTeam ( source, teamWorkless) end end
  22. You should use Database which will be kept in server (with all players data like: money,weapons, last positions) And onPlayerQuit - save data to database onPlayerJoin - load this data
  23. XFawkes

    Money Trasfer

    Script don't know who is: thePlayer change it to theSender
  24. When car is rolling right then Rotation Y goes like: 0,45,90,45,0,315,270,315,0 I've already created script which checks when car is in normal position and when it is upside-down. And I've already used getVehicleTurnVelocity to check if it was pitch or roll [to do upside-down] state. x,y,z = vehiclerotations onClientRender: function createText ( ) if x > 90 and x < 270 then if State ~= 1 then State = 1 Check(State,x,y,z) end dxDrawText( "UPSIDE-DOWN", 0, 100, screenWidth, screenHeight/6, tocolor ( 255, 255, 255, 255 ), 3, "pricedown" ,"center","center") -- my debug else if State ~= 0 then State = 0 Check(State,x,y,z) end dxDrawText( "NORMAL", 0, 100, screenWidth, screenHeight/6, tocolor ( 255, 255, 255, 255 ), 3, "pricedown" ,"center","center") -- my debug end ox,oy,oz = x,y,z end function Check(Stan,x,y,z) if Stan == 0 then -- change to normal elseif Stan == 1 then -- change to upside-down local vx,vy,vz = getVehicleTurnVelocity ( gMeV ) if vy > vx then outputChatBox("Roll") else outputChatBox("Pitch") end end end Now i am thinking how to calculate that: 0+45+90+45+0+315+270+315+0 = 360 EDIT: OMG: x-TurnVelocity has the same problem, when i am doing Roll then it goes to high values... I think turnvelocity just checks rotation changes.... So it won't help me.. I don't know how to do it...
×
×
  • Create New...