MRThinker Posted July 9, 2018 Share Posted July 9, 2018 how to make a cliyder teleporter i like : go to the cliyder and teleport to Police Department Interior! @Galactix you can help me for this script ? Link to comment
Galactix Posted July 9, 2018 Share Posted July 9, 2018 function pdEnter() local pdMarker = createMarker(-2596.625, 579.358, 15.626, 'cylinder', 2.0, 255, 0, 0, 150) -- set coordinates to be in front of the Police Departement setElementInterior(source, 5, 322.72, 306.43, 999.15 end addEventHandler( "onMarkerHit", pdMarker, pdEnter ) Don't forget the thanks reaction if it helped 1 Link to comment
MRThinker Posted July 10, 2018 Author Share Posted July 10, 2018 @Galactix im stopped the admin resource and use /setskin my skin not set and error is [2018-07-10 13:15:21] ERROR: SetSkin\server.lua:25: attempt to call global 'findPlayer' (a nil value) and my server side is addCommandHandler('setskin',function(source,_,player,skinid) local find = findPlayer( player ) if find then local playerAccount = getPlayerAccount(source) local accName = getAccountName ( playerAccount ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then setElementModel ( find, skinid ) outputChatBox("[PirateGaming] Your skin was changed to "..skinid.." by the admin "..accName.."!", find) else outputChatBox("You are not allowed to use this command!", source, 255,0,0) end else outputChatBox("Player not found!", source, 255,0,0) end end) Link to comment
Galactix Posted July 10, 2018 Share Posted July 10, 2018 You need to do /setskin player skinid Link to comment
MRThinker Posted July 10, 2018 Author Share Posted July 10, 2018 (edited) i know! im use /setskin player skinid but have errors @Galactix Edited July 10, 2018 by MRThinker Link to comment
Galactix Posted July 10, 2018 Share Posted July 10, 2018 If you provide a player argument then the findPlayer wouldn’t output an error unless you didn’t put any or if the player isn’t online Link to comment
MRThinker Posted July 10, 2018 Author Share Posted July 10, 2018 no! im set myself skin and server have error! Link to comment
Galactix Posted July 10, 2018 Share Posted July 10, 2018 If you write /setskin MRThinker 1 it would work Link to comment
MRThinker Posted July 10, 2018 Author Share Posted July 10, 2018 no! not working Works! But I want the server to tell me [Pirate-Gaming] Your Skin Set To ID 1 By Admin MRThinkeR Link to comment
MRThinker Posted July 10, 2018 Author Share Posted July 10, 2018 15 hours ago, Galactix said: function pdEnter() local pdMarker = createMarker(-2596.625, 579.358, 15.626, 'cylinder', 2.0, 255, 0, 0, 150) -- set coordinates to be in front of the Police Departement setElementInterior(source, 5, 322.72, 306.43, 999.15 end addEventHandler( "onMarkerHit", pdMarker, pdEnter ) Don't forget the thanks reaction if it helped not working Link to comment
Storm-Hanma Posted July 10, 2018 Share Posted July 10, 2018 Provide output msg when he enter the interior Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now