Jump to content

Simbad de Zeeman

Members
  • Posts

    173
  • Joined

  • Last visited

Everything posted by Simbad de Zeeman

  1. Very usefull! Can you post some screenshots? or video? because i cant run the script atm (@ work)
  2. Stats are saved too now, and also your car + upgrades/paintjobs/tires/color
  3. Hi, i was messing around with the /chat commands and i made this: Doesn't this look like the old school mta:vc chatbox? This is what you have to do: /chatfont 2 /chatlines 13 /chattextcss 2 /chatwidth 1.3 /chatcolor 0 0 0 180 /chatinputprefixcolor 255 255 255 255 /chatinputtextcolor 255 255 255 255 /chatinputcolor 255 0 0 180 Edit: maybe this is the wrong section to post this..
  4. ye, that frame limiter, how high is it.. some people can have 70 or 80... so i must be able to reach that too.
  5. but then again.. when the server is empty (nocars/objects) my fps is around 40-45 maybe 50 in SP or in SA-MP (sorry) it is 70
  6. And also all the cars in the server lowers your fps a lot i think.. because when i destroy all vehicles (450 or something) (destroyElement) my fps raises with 30 fps!
  7. turn of Anti alias then your game runs fine... i had that too.
  8. I noticed when you use windowed mode, and you come back after a couple of minutes you dont see some people and other do see them (just like mta:vc)
  9. Yes thats the same i thought, in my server i have a lot of cars.. and there is much desync when im at a place where the cars a FAR FAR away it looks like the desync is almost gone.. secondly: servers which are running tdm and sth gamemodes dont have desync too... because there are no cars.. hmmm. ?
  10. Here you are viewtopic.php?f=91&t=22013&st=0&sk=t&sd=a&hilit=simple+ramp
  11. I think, dont know for sure you need to remove 'Source' so it looks like this: function keyboard ()
  12. Ok i saw an old topic where they were talking about spawning ramps, but the problem was ( i tested that scripts ) When 2 players (or more) spawned the ramps at the same time, the first ramp that was spawned didnt disappear. So that means when your server is a populair you will get a lot of ramps in your server that dont disappear. I changed that script a bit, and this script allows you to spawn a ramp which disappears 2 seconds later. Other players can spawn their ramp too at the same time, and all ramps will disappear. Just get a vehicle and push 'c' and BAM... there is a ramp infront of you Here you are -- Somewhere at the top ramp = { } rampspawned = { } --- Put this somewhere in onPlayerJoin event or something, of sterf.. bindKey ( source, "c", "down", createRamp ) -- Somewhere in your script function createRamp ( source ) if(isPlayerInVehicle ( source ) ) then if( rampspawned [ source ] ~= true ) then local x, y, z = getElementPosition ( source ) local theVehicle = getPlayerOccupiedVehicle ( source ) local a,b,r = getVehicleRotation ( theVehicle ) x = x - math.sin ( math.rad(r) ) * 20 y = y + math.cos ( math.rad(r) ) * 20 ramp [ source ] = createObject ( 1655, x, y, z, 0, 0, r ) rampspawned [ source ] = true setTimer ( RemoveRamp, 2000, 1, source ) end end end function RemoveRamp ( source ) destroyramp = destroyElement( ramp [ source ] ) if ( destroyramp ) then rampspawned [ source ] = false end end
  13. That was not my question ( i already made that though ) and i know what the problem was now so this topic comes to an end
  14. It doesn't edit: it does.. but strange... its just that it cant save strings or something but it returns true. edit 2: and setaccountdata doesnt work in event 'OnClientLogout' ( maybe a bug ? )
  15. Hi, im having a problem with saving data into player accounts (accounts.xml) i use this simple test code function save ( source ) local playeraccount = getClientAccount ( source ) if ( playeraccount ) then save = setAccountData ( playeraccount, "test", "leukhe" ) if( save ) then outputChatBox ( "TEST: saved succesfull.", source , 66, 237, 251 ) else outputChatBox ( "TEST: didnt save... ", source , 66, 237, 251 ) end end end addCommandHandler ( "save", save ) when i type /save, it displays "TEST: saved succesfull." in the chat... but there is no data saved in my account Does someone maybe know whats the problem? or is it a bug
  16. Ok i cleaned up my whole code now and its working, thanks for all who taked time to help me! its kevuwk's code which worked!
  17. and it still wont work in DP2 for theKey,theVehicle in getElementsByType ( "vehicle" ) do <---------- Line 95 toggleVehicleRespawn ( theVehicle, true ) setVehicleRespawnDelay ( theVehicle, 5000 ) end ERROR: attemt to call a table value
  18. Ye it works now atm im getting download errrors now, i just copied the dff and txd files manually and it worked
  19. Yes i know, my code is ok, but it just doesn't replace the models, i got the same script as you, it downloads the files and when i replace it it does nothing, even no error in the log..
×
×
  • Create New...