Jump to content

DutchCaffeine

Members
  • Posts

    208
  • Joined

  • Last visited

Everything posted by DutchCaffeine

  1. callRemote is no solution. I can't send http authentication with callRemote.
  2. Hello folks, For my server I'm in need of a CURL module to make rest full api calls to a web service. I'm scripting my websites not in php any longer, i use there for python with the framework Django. Now with that i use a application called piston (http://bitbucket.org/jespern/django-piston/wiki/Home) piston just helps me creating a web service. Also i want to use CURL to make calls to twitter and get the user timeline for example. Now my question is could someone please make this, I'm not really into the c++. I need this for my windows test server. And for my public server ubuntu. If maybe the MTA team will build this into mta it self, it would be great! Thanks in advance, Alexander de Jong
  3. Today i give my though about svn and google code; I don't like it, i don't like it. Why, easy on github and bitbucket you can create your very own fork and develop from there. I really do prefer bitbucket because they use mercurial. And on googlecode you can't really create a copy/fork of that repository. That is mine meaning about svn. Alexander de Jong
  4. Easy, https://wiki.multitheftauto.com/wiki/Client_Scrip ... _functions Read the wiki everything is explained there!
  5. Here is everything you need: https://wiki.multitheftauto.com/wiki/Resource:Editor/EDF
  6. <!-- s:o --><img src=\"{SMILIES_PATH}/icon_surprised.gif\" alt=\":o\" title=\"Surprised\" /><!-- s:o --> This is phpBB that things he is smart by parsing smillies in the code tags .
  7. Dff, txd: https://wiki.multitheftauto.com/wiki/Client_Scrip ... _functions .img, .dat, .gxt are not modable in mta. You can edit them locally but that won't be synced
  8. This should work, but the variable this is not defined! The code with the variable this defined this = getResourceRootElement(getThisResource()) function markerHit( ) if ( source == indJuodas ) then outputChatBox("Boo") end end addEventHandler( "onRecourseStart", getResourceRootElement(), function( ) indJuodas = createMarker(216.9921875, 79.0078125, 1004.0390625, "cylinder", 1.5, 1, 1, 1) setElementInterior(indJuodas,6) addEventHandler( "onMarkerHit", this, markerHit ) end )
  9. Here, this is the complete script. And really learn the basic of lua scripting! function createMoney(player) local x, y, z = getElementPosition(player); local x1, y1, x2, y2; x1 = (x-2)+(math.random()*4); y1 = (y-2)+(math.random()*4); x2 = (x-2)+(math.random()*4); y2 = (y-2)+(math.random()*4); local moneyAmmount = getPlayerMoney(player); -- it is not fair too get all the player money. moneyAmmount = math.floor(moneyAmmount/3); takePlayerMoney(player, moneyAmmount); -- We are going to create 2 pickups, zo we are just cut the ammount in half moneyAmmount = math.floor(moneyAmmount/2); -- Create the pickups setElementData(createPickup(x1, y1, z, 3, 1212), "ammount", moneyAmmount)); setElementData(createPickup(x2, y2, z, 3, 1212), "ammount", moneyAmmount)); end function moneyPickupHit(player) local money = getElementData(source, "ammount"); if money then givePlayerMoney(player, money); destroyElement(source); end end function playerJustGotDied(ammo, attacker, weapon, bodypart) createMoney(source); end addEventHandler("onPickupUse", getRootElement(), moneyPickupHit); addEventHandler("onPlayerWasted", getRootElement(), playerJustGotDied);
  10. Today's reclame: goto hans anders for glasses! I said, it is one of the 3 lines that tells you wich makes the ammount of money. local moneyammount = math.floor(200*level^0.2) Now if you change moneyammount to getPlayerMoney then you've got it! Simple he? Yes, i know jim and wappie.
  11. Jammie: I give you one tip about the ammount of the money pickup, it is in one of these three lines. And by the way, next time you will need your glasses in other to read the script. local y2=(my-2)+(math.random()*4) local moneyamount=math.floor(200*level^0.2) setElementData(createPickup(x1,y1,mz,3,1212),"amount",moneyamount)
  12. Do you have in the root of the mta server (where MTA Server executable is located) a file called libmysql.so. No? Google, download, put, run again.
  13. Uhm yes, but i was never good in mathematic. It is a weak point in me.
  14. Uhm yes, but i was never good in mathematic. It is a weak point in me.
  15. to create them, can use a radar area to create them? Because those spares are invisible.
  16. to create them, can use a radar area to create them? Because those spares are invisible.
  17. Ahh, i think i got the point. So i go to point #3 save the coords, that are the x and y coords. Then i go from point #3 to #4 and then get the distance with the function getDistanceBetweenPoints2D that is the width. Then i go from point #3 to #1 and with the same function i get the depth. Am i right now?
  18. Ahh, i think i got the point. So i go to point #3 save the coords, that are the x and y coords. Then i go from point #3 to #4 and then get the distance with the function getDistanceBetweenPoints2D that is the width. Then i go from point #3 to #1 and with the same function i get the depth. Am i right now?
  19. If i read good: from position 3 i need to get the x coord from position 4 i need to get the y coord and from 3 to (x coord) 1 i can calculate the depth and from 3 to 4 i can calculate the width Am i right?
  20. If i read good: from position 3 i need to get the x coord from position 4 i need to get the y coord and from 3 to (x coord) 1 i can calculate the depth and from 3 to 4 i can calculate the width Am i right?
  21. Ho ho, i don't make a joke out of you. I never will. Lets get it more complicated. I've made a rectangle in photoshop: There are 5 points there: 1. left top 2. right top 3. left bottom 4. right bottom 5. center Now, i want to know at what point i need to get x and the y. And how to math the width and depth. I hope that explains some more about my question.
  22. Ho ho, i don't make a joke out of you. I never will. Lets get it more complicated. I've made a rectangle in photoshop: There are 5 points there: 1. left top 2. right top 3. left bottom 4. right bottom 5. center Now, i want to know at what point i need to get x and the y. And how to math the width and depth. I hope that explains some more about my question.
  23. I know the function. But lets take a look at the arguments: float fX, float fY, float fWidth, float fDepth How to get these stuff, the x, y, and width and depth? That is my question.
  24. I know the function. But lets take a look at the arguments: float fX, float fY, float fWidth, float fDepth How to get these stuff, the x, y, and width and depth? That is my question.
  25. Hello everybody, I need a colrectangle, but i don't know how i need to get the coordinates and the size of it. How math all that, does someone know it?
×
×
  • Create New...