knash94
Members-
Posts
143 -
Joined
-
Last visited
Everything posted by knash94
-
Well ive learnt a lesson. Thank you I aint a god at lua so i try my best and i know how annoying it is when you dont know how to do a script and i enjoy helping people that need the help. Thats why i joined the forums... MTA is also a good comunity.
-
I get what he wants and hes on my msn list. Ill do this for him
-
function hide () guiSetVisible ( mygui, false ) showCursor( false ) end function createWindow () outputChatBox("The buy menu is open! Make sure nobody attacks you.",255,0,255,255) mygui = guiCreateWindow(0.08, 0.18, 0.2, 0.3, "BUY MENU", true) showCursor(true) local X = 0.375 local Y = 0.375 local Width = 0.25 local Height = 0.25 buym4 = guiCreateButton(0.05, 0.1, 0.3, 0.1, "M4", true, mygui) buyak = guiCreateButton(0.05, 0.2, 0.3, 0.1, "AK47", true, mygui) buyde = guiCreateButton(0.05, 0.3, 0.3, 0.1, "Deagle", true, mygui) buypi = guiCreateButton(0.05, 0.4, 0.3, 0.1, "Pistol", true, mygui) buysi = guiCreateButton(0.05, 0.5, 0.3, 0.1, "Silenced", true, mygui) buymp = guiCreateButton(0.05, 0.6, 0.3, 0.1, "Mp5", true, mygui) buysn = guiCreateButton(0.05, 0.7, 0.3, 0.1, "Sniper", true, mygui) btnExit = guiCreateButton( 0.05, 0.8, 0.9, 0.2, "Exit", true, mygui ) guiCreateLabel(0.4,0.12, 0.5, 0.1, "$2000 for 50 bullets", true, mygui) guiCreateLabel(0.4,0.22, 0.5, 0.1, "$2000 for 40 bullets", true, mygui) guiCreateLabel(0.4,0.32, 0.5, 0.1, "$750 for 90 bullets", true, mygui) guiCreateLabel(0.4,0.42, 0.5, 0.1, "$750 for 140 bullets", true, mygui) guiCreateLabel(0.4,0.52, 0.5, 0.1, "$750 for 120 bullets", true, mygui) guiCreateLabel(0.4,0.62, 0.5, 0.1, "$1000 for 90 bullets", true, mygui) guiCreateLabel(0.4,0.72, 0.5, 0.1, "$1000 for 100 bullets", true, mygui) addEventHandler( "onClientGUIClick", btnExit, hide ) end addCommandHandler( "gui", createWindow ) That should be it. If it dont work. Just say
-
What about using event: addEventHandler ( "onResourceStart", getRootElement(), joinHandler )
-
Nice to see another post already on the devlopment. good job guys =)
-
Who helped you the most? I don't help? I helped you a lot... because you stopped replying there, it probably means you finally got it working. OK fine, you "maked" vehicle shop... but when I look at this code: local 133.091675, 1941.873901, 19.320068 = getElementPosition ( theObject ) --get the origanal position local 18.950716 = 19.320068 + 100 -- make a new z position I don't really believe you made vehicle shop -_-' I lost lots of time helping you out in your previous topic and I see, I wasted that time badly. Anyway, good luck with scripting. local 9 = 4 + 5 I agree. Wtf im a nooby scripter but i can still type in some co-ordinates and moveobject And i dont think i could make a vehicle shop so i dont thinkTalasma can
-
Use an object browser.. I think some gates are around the 950-980 region
-
function onstartup () object = createObject ( some id, x, y, z, rx, ry, rz ) end addEventHandler ( "onResourceStart", getRootElement(), onstartup ) function move () moveObject ( object, time to move, x, y, z ) end addCommandHandler("open", move) That should work -- And put the full co-ordinate's for move-object - Or you could use getElementPosition
-
Thanks. Im also in the clan. The site is down atm ( Not paying for my host, lol ), but later i will post the latest members list =)
-
"You were kicked by Console (Invalid Serial)
knash94 replied to JackZipper's topic in DM Server-side
Yes this happend to me b4.. If you dont need admin panel just do "stop admin" in the console... Also have you downloaded the lastest resourses? -
Lanc do you mean a gui menu for it? I think ive seen one on comunity before.
-
Well i was planning to make an RP for mta nightly but f*** is this a good server and script
-
With KIHC u have to be named as the admin account and you need "ban" on your admin acl. I had this problem b4
-
Sorry to double post but if i dont people wont reply... Other than making a new topic i think its a better idea just to ask for help on this one Can anyone please post an example of a working SQL ingame with money and player names (With working query's for setplayermoney (or w.e it is) ) , yes ive tried it and it fails.. im too embarresd to even post it on the forums lol. Any way, anyone who can help is a legend
-
Well im quite a newbie at lua but still im coding a RPG and if you need help just add me on [email protected] and i might even give you a few scripts & tips
-
Well im trying to make my own one for dp2.3 i will try improoving it quite a bit every week or so then ill eventually go onto nightly builds and start getting it ready for mta1.0 But thanks. It looks like a real nice script.
-
Thanks for the help i will try this when im on my other computer. I have been trying to make a rpg script and so far it looks alright
-
function normalworld ( robber ) setElementInterior ( robber, 0 ) setElementPosition ( robber, 430.39071655273, 2501.9091796875, 18.580074457397 ) outputChatBox("You should of been let out by now", robber) end function arrest ( thePlayer, command, robber ) robber = getPlayerFromNick(robber) local playerTeam = getPlayerTeam ( thePlayer ) if ( playerTeam == Police ) then if ( robber ) then local level = getPlayerWantedLevel( robber ) if ( level >= 1 ) then setElementInterior ( robber, 10, 219.89385986328, 111.19395446777, 999.015625 ) if ( level == 1 ) then givePlayerMoney ( thePlayer, 250 ) setPlayerWantedLevel( robber, 0 ) setTimer ( normalworld, 30000, 1 ) outputChatBox("You'r now in jail for 30 seconds.", robber) outputChatBox("You have sent" .. robber .. " to jail. You are rewarded $250", thePlayer) elseif ( level == 2 ) then givePlayerMoney ( thePlayer, 350 ) setPlayerWantedLevel( robber, 0 ) setTimer ( normalworld, 45000, 1 ) outputChatBox("You'r now in jail for 45 seconds.", robber) outputChatBox("You have sent" .. robber .. " to jail. You are rewarded $350", thePlayer) elseif ( level == 3 ) then givePlayerMoney ( thePlayer, 500 ) setPlayerWantedLevel( robber, 0 ) setTimer ( normalworld, 60000, 1 ) outputChatBox("You'r now in jail for 60 seconds.", robber) outputChatBox("You have sent" .. robber .. " to jail. You are rewarded $500", thePlayer) elseif ( level == 4 ) then givePlayerMoney ( thePlayer, 650 ) setPlayerWantedLevel( robber, 0 ) setTimer ( normalworld, 90000, 1 ) outputChatBox("You'r now in jail for 90 seconds.", robber) outputChatBox("You have sent" .. robber .. " to jail. You are rewarded $650", thePlayer) elseif ( level == 5 ) then givePlayerMoney ( thePlayer, 800 ) setPlayerWantedLevel( robber, 0 ) setTimer ( normalworld, 150000, 1 ) outputChatBox("You'r now in jail for 150 seconds.", robber) outputChatBox("You have sent" .. robber .. " to jail. You are rewarded $800", thePlayer) elseif ( level == 6 ) then givePlayerMoney ( thePlayer, 1000 ) setPlayerWantedLevel( robber, 0 ) setTimer ( normalworld, 250000, 1 ) outputChatBox("You'r now in jail for 250 seconds.", robber) outputChatBox("You have sent" .. robber .. " to jail. You are rewarded $1000", thePlayer) end else outputChatBox("This target is not wanted", thePlayer) end else outputChatBox("You have not selected anyone.", thePlayer) end else outputChatBox("You are not a part of the police force.", thePlayer) end end addCommandHandler("arrest", arrest) Well what the problem is that "function normalworld ( robber )" does not know who to release from jail. Is there anything i can change which will make it know who to release? Thank you. Im tired right now if im not making much sense
