
BieHDC
Members-
Posts
296 -
Joined
-
Last visited
Everything posted by BieHDC
-
why you set a timer for this? I think it is not needed
-
Hello As the Subject says: What Wine version do you use for playing MTA on Linux? I use 1.4.1 and works great, but copy and paste doesnt work If you play it with an newer Version, then please tell me, because i need c&p for scripting btw: Stock Wine or with PlayOnLinux?
-
LOL i have made an script which is barley like this
-
From where do you come? if you speak german then i can help you
-
what does not work? debugscript freeze/unfreeze? if you wanna me to check you will have to wait 1h that i got time for this
-
Try this (untested) local mojmarker = createMarker (-1984.6114501953, 248.5777130127, 34.171875, 'cylinder', 5, 0, 0, 190) function spanie(player) if source == mojmarker then if isPedInVehicle (player) then setPedFrozen ( player, true ) setElementFrozen(getPedOccupiedVehicle(player),true) setTimer( function () setPedFrozen(player,false) setElementFrozen(getPedOccupiedVehicle(player),false) end, 60000,1 ) --60.000 is one minute end end end addEventHandler ("onClientMarkerhit", resourceRoot, spanie)
-
not tested and you should give the player money on serverside! local marker1 = createMarker (2363.59326, -1667.18665, 12.6, "cylinder", 0.8, 0, 255, 0) local marker2 = createMarker (2363.97681, -1650.78491, 12.6, "cylinder", 0.8, 0, 255, 0) local marker3 = createMarker (2383.69360, -1667.21069, 12.6, "cylinder", 0.8, 0, 255, 0) local marker4 = createMarker (2395.30908 ,-1650.56726, 12.6, "cylinder", 0.8, 0, 255, 0) local marker5 = createMarker (2408.49097, -1667.32104, 12.6, "cylinder", 0.8, 0, 255, 0) local marker6 = createMarker (2415.36792, -1650.27344, 12.9, "cylinder", 0.8, 0, 255, 0) local hitmarker = nil addEventHandler('onClientMarkerHit', resourceRoot, function(hitPlayer) if hitPlayer == localPlayer then if source == marker1 then hitMarker = setTimer(function() outputChatBox('You got your money.') givePlayerMoney(hitPlayer, 500) destroyElement(marker1) end, 5000, 1) elseif source == marker2 then --ADD THIS FOR EVERY MARKER AND IF YOU WANNA DO THE SAME FOR ALL YOU DONT NEED WHAT MARKER IS HIT, BECAUSE THIS ONLY WORKS THEN FOR MARKERS CREATED BY THIS RESOURCE end end end)
-
you compare strings! change it to: if source == localPlayer then if you wanna use that, but i think its not needed
-
Thats the problem
-
but i would need a script for it, because i wanna remove the world model and recreate it then so that the whole map get recreated with a script so that i can for example move something
-
what use has the line 12 and 13? ^^ spawnZ = 20 repeat --this until --n dat spawnPlayer ( player, spawnX, spawnY, spawnZ, 180, skinID ) ^^
-
https://wiki.multitheftauto.com/wiki/RemoveWorldModel Is there something with what i can get the Object thats removed like: ID,Pos,Rot Would be great if this is possible
-
because the serverevents are not car1,car2.... They are sanchez,Bmx... So change the names of the triggerServerEvents to the right one which is needed btw: that code is a mess
-
switch the arguments do attachElements(theobject,theCAR) "i think :D"
-
it seems this resource needs a database
-
This is simple to do man. And we only give support, so try yourself and we help you with errors ok
-
onClientPlayerVehicleEnter getElementModel playSound
-
You have a Database setted up and connected?
-
dont remove! only set them to false instead of true
-
MTA SA Never worked for me in PlayOnLinux If you use a BED based distro install wine-1.4.1 and use this
-
Set Respawn in meta of the Map file?
-
Try this: viewtopic.php?f=148&t=51875#p525543
-
ok this worked and for countdown go in race_server.lua to line 362 and change to this g_RaceStartCountdown = Countdown.create(0, launchRace) g_RaceStartCountdown:useImages('img/countdown_0.png', 474, 204) g_RaceStartCountdown:enableFade(true) g_RaceStartCountdown:addClientHook(0, 'playSoundFrontEnd', 45)