|xTR|Silver
Members-
Posts
13 -
Joined
-
Last visited
Everything posted by |xTR|Silver
-
oh yea anubhav , thx , but i've tried your note script.. i typed /note and it dint work
-
can anyone make me a lock for GUI system ? i need it for my VIP gui lock , everyone can use it :\\ here is the data : function flyCheck() local checked = guiCheckBoxGetSelected(cW.chFly) if checked then setWorldSpecialPropertyEnabled("aircars", true) else setWorldSpecialPropertyEnabled("aircars", false) end end addEventHandler("onClientGUIClick", cW.chFly, flyCheck, false) function hoverCheck() local checked = guiCheckBoxGetSelected(cW.chHover) if checked then setWorldSpecialPropertyEnabled("hovercars", true) else setWorldSpecialPropertyEnabled("hovercars", false) end end addEventHandler("onClientGUIClick", cW.chHover, hoverCheck, false) function hopCheck() local checked = guiCheckBoxGetSelected(cW.chBunny) if checked then setWorldSpecialPropertyEnabled("extrabunny", true) else setWorldSpecialPropertyEnabled("extrabunny", false) end end addEventHandler("onClientGUIClick", cW.chBunny, hopCheck, false) function jumpCheck() local checked = guiCheckBoxGetSelected(cW.chJump) if checked then setWorldSpecialPropertyEnabled("extrajump", true) else setWorldSpecialPropertyEnabled("extrajump", false) end end addEventHandler("onClientGUIClick", cW.chJump, jumpCheck, false) function showCheats() local isVisible = guiGetVisible(cW.main) if isVisible then guiSetVisible(cW.main, false) showCursor(false) else guiSetVisible(cW.main, true) showCursor(true) end end addCommandHandler ( "vip", showCheats ) bindKey ( "F2","down", showCheats ) function btnCloseCheats() guiSetVisible(cW.main, false) showCursor(false) end addEventHandler("onClientGUIClick", cW.btn, btnCloseCheats, false) function showCheatsHelp() guiSetVisible(cW.Help, true) guiBringToFront(cW.Help) end addEventHandler("onClientGUIClick", cW.btnHelp, showCheatsHelp, false) function hideCheatsHelp() guiSetVisible(cW.Help, false) end addEventHandler("onClientGUIClick", cW.btnHelpClose, hideCheatsHelp, false)
-
thx , i do find the vehicle panel but.. i dint really like it , thx anyway
-
first of all , iam sorry if this is the wrong topic , i dont know much about mta forum even i've been around 1 year here.. i need a car save panel ( a panel that can hide or spawn vehicles ) anyone have a script for it ? if you have one can you give it to me ?
-
Thx , but.... , its working now , thanks again anyway
-
thx , but i fixed it my own way , btw thax once again , your dest is too complicated for my brain to handle all of it , i think its gonna blow when i was reading it :///
-
gate = createObject( 980, 2253.1000976563, 512.5, 2 ) --Object ID (Airport Gate=978) & Co-Ordinates of your gates start of position. gatecol = createColCircle ( 2253.1000976563, 512.5, 25 ) --Co-Ordinates "X" and "Y" and the radius, I use 15 as default. function openagates ( thePlayer ) if ( getElementType ( thePlayer ) == "player" ) then local team = getPlayerTeam ( thePlayer ) local teamName = ( team and getTeamName ( team ) or "" ) if ( teamName == "Staff" ) then moveObject ( gate, 2000, 2253.1000976563, 512.5, -3 ) --The speed in which 7000 is slow and 2000 is fast to open, Co-Ordinates for the gate to move to. else outputChatBox ( "Sorry, you can not open this gate as you are not in the specified groups", thePlayer ) end end end addEventHandler ( "onColShapeHit", gatecol, openagates ) --Event Handler to trigger the function function closeagates(thePlayer) if ( getElementType ( thePlayer ) == "player" ) then local team = getPlayerTeam ( thePlayer ) local teamName = ( team and getTeamName ( team ) or "" ) if ( teamName == "Staff" ) then moveObject ( gate, 1000, 2253.1000976563, 512.5, 2 ) --The speed in which 7000 is slow and 1000 is fast to open, Co-Ordinates for the gate to close. rX, rY, rZ = getElementRotation ( gate ) setElementRotation ( gate, rX, rY,rZ+272, true ) end end end addEventHandler ( "onColShapeLeave", gatecol, closeagates ) --Event Handler to trigger the function i should put it like that ?? , iam a newbie on scripting
-
Thx you both , really helped me alot
-
Thx bro , you helped me alot , ( trying hard to find 1 , took 1 day to think of registering in mta forum and started a topic ) :///
-
Is that a cooamnd that i should use on my server ?? ( to get the rotation of the gate ofc ) -thx for reading -Silver
-
Sorry , bad english
-
I got a script from maky55 from tutorials section , well i need your help about that , i cant seems to rotate the gate ( after i scripted the gate from maky55 script) can you guys help ? Heres the code : iam on my tablet so... dint have the lua file , sorry but you can visit viewtopic.php?f=148&t=51875 , team spoiler thx for reading -Silver
-
@maky55 , thx dude its working , but how can i rotate it ?? , iam new to scripting but i can do some basics.... , please reply
