
DrifteR
Members-
Posts
45 -
Joined
-
Last visited
Everything posted by DrifteR
-
Ok, how could i set the Marker visibility?
-
Hi, i have this code but it doesn't work, no errors, no warnnings Location - Area 51 local CP local C2 local C3 local C1 = createMarker (307,1971,17, "checkpoint",3, 255, 30, 30, 255 ) addEventHandler( "onMarkerHit", C1, function (hitElement, matchingDimension) if getElementType( hitElement ) == "player" then outputChatBox("Hei " .. getPlayerName(GetLocalPlayer()) .. ", there is a stair to help you cross thre fence, GO!") C2 = createMarker (302,1902,17, "checkpoint",3, 255,100,100, 255 ) destroyElement(C1) else outputChatBox("test") end end ) addEventHandler( "onMarkerHit", C2, function(hitElement, matchingDimension) if getElementType( hitElement ) == "player" then outputChatBox("Now get up to the safezone! Arrows will guide you!") C3 = createMarker (236,1927,17, "checkpoint",3, 30,255,30, 255 ) destroyElement(C2) end end ) addEventHandler( "onMarkerHit", C3, function(hitElement, matchingDimension) if getElementType( hitElement ) == "player" then outputChatBox("Suit up " .. getPlayerName(getLocalPlayer()) .. " for the fight!") CP = createMarker ( 207.25,1931.25390625,22.33, "checkpoint",3, 0, 255, 30, 255 ) destroyElement(C3) end end ) addEventHandler( "onMarkerHit", CP, function(hitElement, matchingDimension) if getElementType( hitElement ) == "player" then local skin = {30,121,122,127} setElementModel ( getLocalPlayer(), skin[math.random(1,4)] ) destroyElement(CP) end end ) First marker is created, but looks like onMarkerHit doesn't work. Edit #1 : Client-Side script Can anyone help me with this? Anyone?
-
I'm Sorry for the delay but i had some hardware problems preventing me to run the game and test the gamemode.i'm also haveing some problems at school
-
is there a way to change the the camera to Inside Car Cam on car enter?
-
First beta will arrive in December, or i hope so...
-
ok, thank you
-
maybe a little bit based on freeroam, or maybe not I thought of a game mode like the real 18 Wheels of Steel... The same experience... In MTA!
-
I am now scripting a new gamemode , hopefully good, for those who like trucking and 18 WoS: Features: -Never Die -Custom made trucks and trailers -Dashboard(steering wheel,speedometer, oil pressure, engine RPM ,NOS,radio, wipers(when it rains),angle of wheels and hopefully, if i can, side-mirrors) -Missions -Trucks Upgrade(wheels, engine, body) -Gas/Repair/Weight Checking Stations -Custom Loud Horns( buy from shops) -Cops(maybe peds, or maybe players) -Locations like Hotels and pick-up/drop cargo -Ferries -Trains -And more.... Done: -Never Die -Custom made trucks and trailers -Custom Loud Horns( buy from shops) -Locations like Hotels and pick-up/drop cargo -Some of the code for Missions Done 14 % I think i will finish it in February 2011, but you know, i'm always faster and finish way ahead of my schedule , Drive Safe Edit : I might need some help with some locations for Hotels and all the gas stations... Edit 2: I had some problems , so i'm delaying the beta to March 2011
-
the code worked with an object, but when i converted to work with a marker, it creates the marker but it doesn't move it
-
hi again, i have the code created with Omg project and i modified it a little bit , but it doesn't work SERVER Side -- DDC OMG generated script: function omgInit() light1 = createMarker(-2270.2705078125,2340.3305664063,9.8359212875366,"checkpoint",2,255,0,250,150) omgMovelight1(1) end function omgMovelight1(point) if point == 1 then moveObject(light1,5000,-2270.0649414063,2287.4482421875,9.8359212875366,0,0,0) setTimer(omgMovelight1,5000 + 0, 1, 2) elseif point == 2 then moveObject(light1,5000,-2255.2316894531,2286.6237792969,9.8359212875366,0,0,0) setTimer(omgMovelight1,5000 + 0, 1, 3) elseif point == 3 then moveObject(light1,5000,-2254.3627929688,2336.8427734375,9.8359212875366,0,0,0) setTimer(omgMovelight1,5000 + 0, 1, 4) elseif point == 4 then moveObject(light1,5000,-2270.2705078125,2340.3305664063,9.8359212875366,0,0,0) setTimer(omgMovelight1,5000 + 0, 1, 1) end end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), omgInit) please help
-
1st : it worked 2nd : in works if i make an other account then start the server and it doesn't crash with the resources so i think is an environmental problem Edit: for example when I renamed resources back, the server didn't crash but it crashed after about 2 minutes (
-
thnx, i'll see if it work's ok:D Now i have even more problems
-
in front of a virtual player,( that doesn't exist?), just the character
-
the player will be in front of a BOT
-
No... is on the client side Edit : IF I CAN GET THAT STUPID SERVER STARTED!!! X(
-
1st: I'm stupid 2nd: help with this code: local onlocation = false location = createMarker ( -1180, 75.7, 17, "cylinder", 3) local ticket = false gatecol = createColCircle ( -1180, 75.7, 17, 3 ) function onlocationchange() onlocation = true outputChatBox ( "How can i help you(/ticket)" ,thePlayer) end addEventHandler( "onColShapeHit", gatecol, onlocationchange ) function leaveloc () onlocation = false outputChatBox ( "Good Bye!" ,thePlayer) end addEventHandler( "onColShapeLeave", gatecol, leaveloc ) function buyticket () local money = getPlayerMoney(thePlayer) if money-100<=0 then outputChatBox ( "You Dont Have enough money" ,thePlayer) else if onlocation == true then setPlayerMoney(thePlayer,money-100) end end end addCommandHandler ("ticket",buyticket) When i enter/exti the marker/ColShape i don't get the messages...help
-
Fixed I have COMODO Security, it was on "Game mode" (WTF) , as soon as i turned it off, the server has NO problem starting up, don't ask me why.... NOTE*: Do Not turn on "game mode" on your antivirus/ firewall, it may interact/force the server to shutdown update: i had luck again (, no change , still "crashing" Maybe this might help, it seems like the server starts normally , or so i think:
-
I dont thing you can solve it, when it crashes, it doesen't say anything about a crash report latest crash was on ...09.30.2010 Edit : how do you work with them i opened them with Visual Studio 2010 Professional, hit debug and it gave me an error, but , i think, it's not my job
-
Hotfix: i typed something into the console while it was loading, and it didn't dissapear.... It was just luck ( NOT fixed And, i've just deleted the Restore Points(needed space in my HDD)
-
yes, it worked, i'm running XP as the main OS, software & server
-
I've uninstalled all recently installed programs (starting from 5 day ago), restarted, the same problem
-
look into the code, do you know how to script?, or the votemanager is running?
-
downgraded again, still the problem persists after 2 reinstalations (uninstall + install) Edit: Sorry for the triple post\ UPDATE: I restarted, booted in Win 7(i have a dual boot Win XP-Win 7) and it worked Booted back into win XP, same problem, Can it be from windows?