-
Posts
563 -
Joined
-
Last visited
Everything posted by Perfect
-
you can use setVehicleEngineState
-
maybe you can use getAccountName
-
Thnx and 1) i want to attach a door to lift, which can open and close by command ? 2) i want a godmode on when player is in lift ? 3) Can you guys help me pls ? EDIT: I am falling down always when lift move somewhere, how to stop falling down from Lift ? Please please reply
-
Wow, worked , thnx!!! can you tell me why that not work before ? and How to attachElement ?Pls function attachplayer(player,cmd) attachElements ( lift, players, 0, 0, 5 ) end function unattachplayer(player,cmd) detachElements(lift,player) addCommandHandler("attlift",attachplayer) addCommandHandler("unattlift",unattachplayer) P
-
I restart resource 5 times and binded /Lper Playername but still getting removepermission
-
still can't give permission, just can remove
-
Thnx but i can just remove permission by using /Lper Playername how to give Permission ?
-
this is correct ? local lift = createObject(8231, -1326, -67, 55) createBlipAttachedTo(lift, 5) setElementData(lift, "vglueable", true, true) setElementDoubleSided( lift, true) function permissionl() tPlayer = getPlayerFromName(targetPlayer) if tPlayer then setElementData(tPlayer, "lift.permission", true) outputChatBox("You have granted "..targetPlayer.." permission to use /Lift", sourcePlayer) end end addCommandHandler("Lper", permissionl) addCommandHandler("lift", function( thePlayer, Command ) if getElementData(thePlayer, "lift.permission", true ) then liftWarpPlayer(thePlayer) else outputChatBox ( "#FF0000Permission: You Don't have Permission to use This Command", getRootElement(), 255, 255, 255, true ) end end ) EDIT: Warning: Lift\lift.lua:7: Bad argument @ getPlayerFromName' Help!!!
-
I did'nt understand anything, pls give examples because i am beginner EDIT: i do this function liftPermission( sourcePlayer, command, who ) local targetPlayer=getPlayerFromName(who) if ( targetPlayer ) then setElementData ( targetPlayer, "lift.permission", true ) outputChatBox ( "You have granted "..targetPlayer.." permission to use /lift", sourcePlayer ) elseif getElementData(targetPlayer, "lift.permission", true ) then setElementData ( targetPlayer, "lift.permission", false ) outputChatBox ( "You have taken "..targetPlayer.." permission to use /lift", sourcePlayer ) else outputChatBox ("" .. targetPlayer .. " does not exist.", sourcePlayer) end end addCommandHandler ( "Lper", liftPermission ) addCommandHandler("Lift", function( thePlayer, Command ) -- You forgot function here if getElementData(thePlayer, "lift.permission", true ) then liftWarpPlayer(thePlayer) else outputChatBox ( "#FF0000Permission: You Don't have Permission to use This Command", getRootElement(), 255, 255, 255, true ) end end ) and got this ERROR: Lift\lift.lua:16: attempt to concatenate local 'targetPlayer' (a boolean value) What now ?
-
hm, i don't need this ? function setLiftLevel (sourcePlayer,command,targetPlayer) local accName = getAccountName(getPlayerAccount(sourcePlayer )) if isObjectInACLGroup("user."..accName,aclGetGroup ("Admin")) then outputChatBox ("You may not use this command",sourcePlayer) end if targetPlayer then setElementData ( targetPlayer, "lift.permission", true ) outputChatBox ( "You have granted "..targetPlayer.." permission to use /lift", sourcePlayer ) elseif getElementData(targetPlayer, "lift.permission", true ) then setElementData ( targetPlayer, "lift.permission", false ) outputChatBox ( "You have taken "..targetPlayer.." permission to use /lift", sourcePlayer ) else outputChatBox ("" .. targetPlayer .. " does not exist.", sourcePlayer) end end addCommandHandler ( "liftpermission", setLiftLevel )
-
confuse , can you attach that to my script pls ?
-
from 2ndEdit i mean if i write /pwarp "playername" then that player warped to Lift and another thing i want a command to give permission to player for use "Lift" and other commands. and another command for take player permission (then that player can't use "Lift" and other commands)
-
Thnx So much!!! EDIT: Still help needed, when i teleport anywhere with lift then i fall down and lift go to target. how to make player not fall when lift move ? EDIT2: I want to warp player to lift, who not an admin(not have permission) and i need a command to give and take permission. Pls help
-
Hi All, like title says "why my lift is not working" local lift = createObject ( 8231, -1326, -67, 55, 0, 0, 0 ) createBlipAttachedTo ( ride, 5) setElementData(lift, "vglueable", true, true) setElementDoubleSided( lift, true) addCommandHandler("Lift", local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) -- get his account name if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then liftWarpPlayer(thePlayer) else outputChatBox ( "#FF0000Permission: You Don't have Permission to use This Command", getRootElement(), 255, 255, 255, true ) end end ) function lsairport ( ) moveObject ( lift, 8231, 1582.4000244141, -2423.3000488281, 17.39999961853, 0, 0, 180 ) end function sfairport ( ) moveObject ( lift, 8231, -1378.1999511719, -248.19999694824, 14.89999961853, 0, 0, 315.20001220703 ) end function lvairport ( ) moveObject ( lift, 8231, 1282.6999511719, 1346.3000488281, 11.60000038147, 0, 0, 270 ) end function pirateship ( ) moveObject ( lift, 8231, 2016.8000488281, 1481.5, 11.699999809265, 0, 0, 283 ) end addCommandHandler("lsa",lsairport) addCommandHandler("sfa",sfairport) addCommandHandler("lva",lvairport) addCommandHandler("ps",pirateship)
-
What is uncoded ? and how to change it to UTF-8 ?
-
i try many times but still not working
-
Debug WARNING: Script 'gates/gates.lua' is not encoded in UTF-8. Loading as ANSI... WARNING: Loading script failed: gates\gates.lua:1: unexpected symbol near '(' Fullcode gates.lua mgate1 = createObject ( 989, 864.5, -3973, 2.2999999523163, 0, 0, 267.99499511719 ) function opengate(thePlayer) local id = getElementModel (thePlayer) moveObject ( mgate1, 1000, 859.79998779297, -3972.6000976563, 2.0999999046326 ) end addCommandHandler("mopen", opengate) function closegate(thePlayer) local id = getElementModel (thePlayer) moveObject ( mgate1, 1000, 864.5, -3973, 2.2999999523163 ) end addCommandHandler("mclose", closegate) meta.xml "Sterick" name="gates" version="1.2.0" type="script"/>
-
ok, ok and why that still not working ?
-
Oh wait, that still not working, there is no gate and i put that server side or client side ?
-
lol, only . ok can you tell me how to do this for admins only ?
-
Hi All, I make this gate but its not working. mgate1 = createObject ( 989, 864.5, -3973, 2.2999999523163, 0, 0, 267.99499511719 ) function opengate(thePlayer) local id = getElementModel (thePlayer) moveObject ( mgate1, 1000, 859.79998779297, -3972.6000976563, 2.0999999046326 ) end addCommandHandler("mopen", opengate) function closegate(theplayer) local id = getElementModel (thePlayer) moveObject ( mgate1, 1000, 864.5, -3973, 2.2999999523163 ) end addCommandHandler("mclose", closegate) Meta "Perfect" name="gates" version="1.2.0" type="script"/>
-
Thnx everyone but i also need create blip by command, anyway Thnx so much all!!! EDIT: How to get Blip back ?
-
Hi All, How to remove blip via command (I mean my own blip not others)
-
lol, I think so but I want to remove all players (everyplayer can't see shadow). and I know this suggestion. But i don't think I need make another topic for that.