Jump to content

Can someone help me :)


tim260

Recommended Posts

im very new to scripting so i dont understand it ive red lots of stuff on the wiki but i cant get it, so the only thing i want is that this object :

<object id="object (sfcopdr) (1)" doublesided="false" model="10184" interior="0" dimension="0" posX="1679.0732421875" posY="377.91595458984" posZ="31.688905715942" rotX="0" rotY="0" rotZ="251.99993896484" /> 

( the SF cop garage door ) is going to move ( The door is placed at a little self made base ) so i saw i have to use Moveobject and that kind of stuff and i want it to open with a command ( like : /open base ) is that possible

and one thing how do i insert my own object for example a base logo :D

thanks in advance for helping or explaining me :)

Link to comment

Here you go, You will have to edit it first.

I used a marker instead of a cuboid cause a marker is easier.

Client-side:

local enterGate = createObject(986, -485.47979736328, -562.69256591797, 26.231700897217, 0, 0, 180) 
local marker = createMarker(-485.14093017578,-564.14202880859,24.534646987915,"Cylinder", 7, 255, 0, 0, 0) 
  
  
function gates() 
moveObject(enterGate, 1000, -478.47052001953, -562.66644287109, 26.231700897217) 
end 
addEventHandler("onClientMarkerHit", marker, gates) 
  
function close() 
moveObject(enterGate, 1000, -485.47979736328, -562.69256591797, 26.231700897217) 
end 
addEventHandler("onClientMarkerLeave", marker, close) 

BTW: https://wiki.multitheftauto.com/wiki/Scr ... troduction it helped me ALOT :D

Link to comment

Ok i got the gates thing now i downloaded loginregister_system.zip from the resources and i keep getting this :

[2011-07-08 14:03:04] CONNECT: tim connected (IP: 5.134.93.4  Serial: A7C3EBE70D89B0C635253353DBFCCA54  Version: 1.0.5-9.02560.0) 
[2011-07-08 14:03:10] JOIN: tim joined the game (IP: 5.134.93.4) 
[2011-07-08 14:03:20] WARNING: loginregister_system\login_server.lua:35: Access denied @ 'addAccount' 
[2011-07-08 14:03:20] WARNING: loginregister_system\login_server.lua:36: Bad argument @ 'logIn' 
[2011-07-08 14:03:22] WARNING: loginregister_system\login_server.lua:35: Access denied @ 'addAccount' 
[2011-07-08 14:03:22] WARNING: loginregister_system\login_server.lua:36: Bad argument @ 'logIn' 
[2011-07-08 14:03:39] LOGIN: (Admin, Everyone) tim successfully logged in as 'tim260' (IP: 5.134.93.4  Serial: A7C3EBE70D89B0C635253353DBFCCA54) 
[2011-07-08 14:03:49] QUIT: tim left the game [Quit] 

the server cant create account ive adde this :

<group name="Admin"> 
        <acl name="Moderator" /> 
        <acl name="SuperModerator" /> 
        <acl name="Admin" /> 
        <acl name="RPC" /> 
        <object name="user.tim260" /> 
        <object name="resource.admin" /> 
        <object name="resource.webadmin" /> 
    <object name="resource.loginregister_system" /> 
    </group> 

so ive added the recourse to admin ( but sometimes it disappears from file :S ) but still it isnt working can someone explane me what i do wrong

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...