function marker()
markers1 = createMarker(-3607.1999511719,871.59997558594,55.200000762939, "checkpoint", 20, 0, 0, 0, 255)
addEventHandler ( "onClientMarkerHit", getRootElement(), mainunctions maifunctions )
addEventHandler ( "onClientMarkerLeave", getRootElement(), mainunctions2 maifunctions2 )
end
addEventHandler( "onClientResourceStart", getResourceRootElement(getThisResource()), marker )
function mainfuctions mainfunctions ( thePlayer )
if source == markers1 then
local vehicle = getPedOccupiedVehicle ( thePlayer )
setGameSpeed(tonumber(0.1))
setGravity ( tonumber(0.005))
createExplosion (-3607,839.09997558594,46.599998474121,true,-1.0,false )
end
end
function mainfuctions2 mainfunctions2 ( thePlayer )
local vehicle = getPedOccupiedVehicle ( thePlayer )
setGameSpeed(tonumber(1))
setGravity ( tonumber(0.008))
end
end
Replies to Re: Untitled
{"text":"text","html5":"html","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"lua","bash":"sh","erlang":"erlang","go":"golang","c":"c_cpp","cpp":"c_cpp","diff":"diff","latex":"latex","sql":"sql","xml":"xml","0":"text","abap":"abap","actionscript":"actionscript","actionscript3":"actionscript","ada":"ada","apache":"apache_conf","applescript":"applescript","asm":"assembly_x86","autohotkey":"autohotkey","closure":"closure","cobol":"cobol","coffeescript":"coffee","cpp-winapi":"c_cpp","c_loadrunner":"c_cpp","c_mac":"c_cpp","c_winapi":"c_cpp","csharp":"csharp","d":"d","dart":"dart","dot":"dot","eiffel":"eiffel","fortran":"fortran","groovy":"groovy","haskell":"haskell","haxe":"haxe","ini":"ini","io":"io","java":"java","java5":"java","make":"makefile","matlab":"matlab","mysql":"mysql","objc":"objectivec","ocaml":"ocaml","pascal":"pascal","perl":"perl","perl6":"perl","postgresql":"pgsql","powershell":"powershell","prolog":"prolog","properties":"properties","rails":"ruby","rust":"rust","scala":"scala","scheme":"scheme","smarty":"smarty","tcl":"tcl","vala":"vala","vb":"vbscript","verilog":"verilog","vhdl":"vhdl","yaml":"yaml"}