يمكن كذا
Local checkGateMarker = createMarker ( 1544.9000244141, -1627.9000244141, 15.199999809265, "corona", 6.0, 0, 0, 255, 0 )
function createGate ()
gatePolice1 = createObject ( 980, 1544.9000244141, -1627.9000244141, 15.199999809265, 0, 0, 90)
end
addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createGate )
function gateCheckingTeam ( thePlayer, matchingDimension )
moveObject ( gatePolice1, 2000, 1544.9000244141, -1627.9000244141, 9.199999809265 )
end
addEventHandler ( "onMarkerHit", checkGateMarker, gateCheckingTeam )
function bindTheKeys ( player, commandName )
bindKey ( player, "Tab", "down", gateCheckingTeam ) -- bind the player's F1 down key
end
addCommandHandler ( "bindme", bindTheKeys )