
MiniGoveya
Members-
Posts
84 -
Joined
-
Last visited
Everything posted by MiniGoveya
-
Can you show me a working example of copyAccountData function with command handler?, thank you.
-
Hmm then the code would be: function push( playerSource, command ) player=getLocalPlayer(playerSource) if ( hasObjectPermissionTo ( playerSource, "function.Push", true ) ) then if isPedInVehicle(player) then local vehicle=getPedOccupiedVehicle(player) x,y,z=getElementVelocity(vehicle) setElementVelocity ( vehicle, x, y, z+0.25) end end end addCommandHandler ( "push", push ) ??? P.S.: I think its clients ide EDIT: I really don't know what to put in "function.Push"
-
Ok I have this lvl 5, he can push himself or others, so here is the code function push( playerSource, command ) player=getLocalPlayer(playerSource) if isPedInVehicle(player) then local vehicle=getPedOccupiedVehicle(player) x,y,z=getElementVelocity(vehicle) setElementVelocity ( vehicle, x, y, z+0.25) end end addCommandHandler ( "push", push ) this is the acl of lvl 5 "Admin5"> "Admin1" /> "Admin2" /> "Admin3" /> "Admin4a" /> "Admin4b" /> "Admin4c" /> "Admin5" />
-
yea.. its a command but its in a folder. EDIT: So it mut be object name="resource.mta" ??? EDIT2: Is there any way to put whole the resources for admin levels on 1 folder? and make it for files instead of millions of folders?
-
Sorry for double post, If I have a script called, "mta.zip" and I want that admins level X can use it I must add on acl of this admin group this line: "resource.mta.zip" /> ???
-
Oooohh thank you bro! Hey, shouldn't I delete this things? "resource.BaseMode" /> "resource.admin" /> "resource.webadmin" /> Or should I put it on every new acl? let me know because I don't understand that part. I ask this because this acl don't have nothing of that: "SuperModerator"> "Moderator" /> "SuperModerator" />
-
@Citizen If I write in chatbox !admins there say Level 1: Citizen Level 5: proracer Level 10: MiniGoveya.<3 etc.. @proracer Thank you Btw, just need that?
-
Which functions could I use to make the !admins function??
-
No no no, you didn't get me. I want that when I press the button( Already existing ) appear the window not when I start the resource. Like the 'Set Money' 'Set Armour' 'Set Health' 'Set Nick', etcetera. This code ( Making the window ) make the window when I start the resource. open = 0 function box() if open==0 then open = 1 showCursor(true) myWindow = guiCreateWindow(0.375, 0.375, 0.500, 0.500, "Map Test Help Commands - GUI Version", true) but1 = guiCreateButton(0.0, 0.1, 0.19, 0.1, "Fix", true, myWindow) but2 = guiCreateButton(0.0, 0.23, 0.19, 0.1, "Blow up", true, myWindow) but3 = guiCreateButton(0.0, 0.36, 0.19, 0.1, "Water Color", true, myWindow) elseif open==1 then open = 0 destroyElement(myWindow) end end open = 0 bindKey("l", "up", box) w1 = guiCreateWindow(0.50, 0.50, 0.50, 0.500, "Map Test Help Commands - GUI Version", true) w2 = guiCreateWindow(0.50, 0.50, 0.50, 0.500, "Map Test Help Commands - GUI Version", true) w3 = guiCreateWindow(0.50, 0.50, 0.50, 0.50, "Map Test Help Commands - GUI Version", true) addEventHandler("onClientGUIClick",getRootElement(), function () if (source == but1) then guiSetVisible(w1,true) elseif (source == but2) then guiSetVisible(w2,true) elseif (source == but3) then guiSetVisible(w3,true) end end)
-
open = 0 function box() if open==0 then open = 1 showCursor(true) myWindow = guiCreateWindow(0.375, 0.375, 0.500, 0.500, "Map Test Help Commands - GUI Version", true) but1 = guiCreateButton(0.0, 0.1, 0.19, 0.1, "Fix", true, myWindow) but2 = guiCreateButton(0.0, 0.23, 0.19, 0.1, "Blow up", true, myWindow) but3 = guiCreateButton(0.0, 0.36, 0.19, 0.1, "Water Color", true, myWindow) elseif open==1 then open = 0 destroyElement(myWindow) end end open = 0 bindKey("l", "up", box) addEventHandler("onClientGUIClick",getRootElement(), function () if (source == but1) then guiSetVisible(someWindowElement,true) elseif (source == but2) then guiSetVisible(someWindowElement2,true) elseif (source == but3) then guiSetVisible(someWindowElement3,true) end end)
-
I'm trying to make some world properties changer so, I made a button with the text "Water Color" ( Here start the problem ) when I touch it, it must open another window ( Like the set money, set armor, set health in normal admin panel ) but I don't know how to do it, I tried making another window in association with the button but didn't work, code:
-
meta.xml "Admin Commands" description="Simply admin commands" author="MiniGoveya" type="script" version="0.2" /> "help.xml" type="server" />
-
i know i know, but is there any way to do it opens?
-
I hope that the function of 'open door' work so that when I pass by the 'markers' in a row, the door opens.
-
Hello, im making this script but i dont know how to make the open door function and i too think that the mostly part of this script is wrong, then, my question is, can u help me saying the wrong things and tell me how can i make the open door function?. local progress = 0; door = createObject(1497, 2476.6862792969,-1657.423828125, 12.327535629272, 0, 0) function markers() marker1 = createMarker( 2485.6589355469, -1682.5872802734, 13.686952590942, 'corona', 5.0, 255, 0, 0, 0 ) marker2 = createMarker( 2493.4475097656, -1675.3487548828, 13.686952590942, 'corona', 5.0, 255, 0, 0, 0 ) marker3 = createMarker( 2493.1372070313, -1665.1042480469, 13.686952590942, 'corona', 5.0, 255, 0, 0, 0 ) marker4 = createMarker( 2492.8647460938, -1656.109375, 13.686952590942, 'corona', 5.0, 255, 0, 0, 0 ) end function marker1() if(marker1 == 0) then if(progress == 0) then progress = 1 else progress = 0 end end end addEventHandler ( "onResourceStart", getRootElement(), marker1 ) function marker2 () if(marker2 == 0) then if(progress == 1) then progress = 2 else progress = 0 end end end addEventHandler( "onResourceStart", getRootElement(), marker2 ) function marker3() if(marker3 == 0) then if(progress == 2) then progress = 3 else progress = 0 end end end addEventHandler( "onResourceStart", getRootElement(), marker3 ) function marker4() if(marker4 == 0) then if(progress == 3) then progress = 0 open door else progress = 0 end end end addEventHandler( "onResourceStart", getRootElement(), marker4 ) Putting the same script on MTA Script Editor the following lines are wrong: -49 -50 -52 -53 -54 Ty for advance.
-
like speedboost but by pressing a key.
-
how can i make !fix all -- fix everyone !fix -- fix specific person ( part of name not whole name ) !fix -- fix only me. !nos all -- give nos to everyone !nos -- give nos to specific person ( part of name not whole name ) !nos -- give nos only to me.
-
da? I dont understand .. Forget the part of text, i knew this hours ago, i need the scripts.
-
it works now i want learn how to do it How can I make the 'Speed' function but, as I said above, without commands, i Want to make it by pressing other key.
-
Hello, how can i make it to everyone, to one specific person & only for me? function mini ( playerSource, command ) fixVehicle(player) end addCommandHandler ( "fix", mini ) function mini ( playerSource, command ) addVehicleUpgrade( car, 1010 ) end addCommandHandler ( "nos", mini ) and say who gives x's thing to who. like minigoveya gives nitro to goveyamini and the same thing to the fix function.