Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. You can't do such thing, SAMP uses PAWNO, MTA uses LUA, it's different, you can only convert maps.
  2. You are using onClientPlayerResourceStart, WTF? that event doesn't exist, it's onClientResourceStart, also to hide it you gotta use guiSetVisible, btw i've tested your script and has no problems, the labels are in the TABS and nothing is wrong o_o. addEventHandler( "onClientResourceStart", getResourceRootElement(getThisResource()), function() bindKey ( "F1", "down", toggleHelp) end ) GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(171,158,452,337,"Help Menu",false) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_TabPanel[1] = guiCreateTabPanel(19,34,411,287,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Rules",GUIEditor_TabPanel[1]) GUIEditor_Label[1] = guiCreateLabel(14,9,368,247,"1. Roleplay at ALL times, 2. Respect everyone we will not tolerate hostile behavior (occly) 3. No PowerGaming or MetaGaming 4. When pulling out a weapon you MUST use a /me to pull out the weapon/object 5. No Deathmatching 6. No cheats, hacks or bug abuse is allowed 7. No Ninja jacking, Pushing cars into the roads, or destorying cars occly 8. No vehicle sale scams 9. No advertising of other servers 10. Do not mix OOC chat with IC chat 11. No revenge killing \n\n**Any violation of the rules may result in a kick, jail time or even a ban! You have been warned.**",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",true) GUIEditor_Tab[2] = guiCreateTab("Commands",GUIEditor_TabPanel[1]) GUIEditor_Label[2] = guiCreateLabel(18,-4,5,5,"",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[2],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[2],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[2],"left",false) GUIEditor_Label[3] = guiCreateLabel(16,9,369,247,"The following commands are already bound to your keyboard:\n\nt - IC Chat, only roleplayed chat should be used b - local OOC chat o - global OOC chat (if enabled) i - view your inventory f2 - brings up the report window __________________________________________________________________\n**Useful text commands (used with t)**\n/animlist - a list of animations /gate - opens doors (some are faction based) ",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[3],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[3],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[3],"left",true) GUIEditor_Tab[3] = guiCreateTab("FAQ",GUIEditor_TabPanel[1]) scrollPane = guiCreateScrollPane(5,5,361,287,false,GUIEditor_Tab[3]) GUIEditor_Label[4] = guiCreateLabel(17,13,361,243,"Q. I just started playing on the server, what can I do?\nA. In Strange Gaming you can do anything you set your mind to, want to be a multi millionaire tycoon? Start a business, want to be in the mafia? Find members and get involved. Most of these activities require you to visit the forums (StrangeGaming.tk) and join the specific group. \nQ. What's a faction? \nA. Factions are groups that roleplay a specific role with more in depth scripting oppertunities. Anyone can create a faction but to become official you must show longitivity and high roleplaying skill. \nQ. I found a bug, what do I do?\nA. Simply use f2 and report it to an admin to have it taken care of. \nQ. Whats Power Gaming? \nA. PowerGaming is forcing a player to roleplay your way with little to no roleplay.\nQ. What is MetaGaming?\nA. MetaGaming is using OOC information to benifit your player IC \nQ. What is revenge killing? \nA. Revenge killing is killing a player after he has RPly killed your character. When you die you should have no memory of your killer and go after him. If you must revenge your dealth find a good RP reason to if you can not DON'T DO IT.",false,scrollPane) guiLabelSetColor(GUIEditor_Label[4],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[4],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[4],"left",true) GUIEditor_Tab[4] = guiCreateTab("Sources",GUIEditor_TabPanel[1]) GUIEditor_Label[5] = guiCreateLabel(17,11,360,248,"Forums: [url=http://www.StrangeGaming.tk]http://www.StrangeGaming.tk[/url] Developer: Lukkaz \n \nWe are looking for more scripters so if you are interested go on the forums and speak to Lukkaz and prove your scripting abilities for a position on the team!",false,GUIEditor_Tab[4]) guiLabelSetColor(GUIEditor_Label[5],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[5],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[5],"left",true) GUIEditor_Label[6] = guiCreateLabel(282,26,147,24,"Strange Gaming",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[6],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[6],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[6],"left",false) function toggleHelp () if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then -- check if the gui element is visible guiSetVisible ( GUIEditor_Window[1], false ) -- if it is, we hide it showCursor(false) else guiSetVisible ( GUIEditor_Window[1], true ) -- if not, we make it visible showCursor(true) end end Screenshot showing that works fine: http://img547.imageshack.us/img547/7304 ... 023459.png
  3. Something must be wrong, like the scrollPane is not being created.
  4. If you wanted me to add that, you should have asked it, the "slap" function was made to slap players not vehicles.
  5. Another car mod https://community.multitheftauto.com/ind ... ls&id=1703
  6. This resource is a Vehicle + Weapon + Skills shop. https://community.multitheftauto.com/index.php?p= ... ils&id=720
  7. Castillo

    HELP

    I never heard of any release of Valhalla's game mode.
  8. I've been working on a update for this resource, i have remade most of code and made it easier and less lines, also added/removed/changed some things on it, i would like to know if someone has a suggestion before release it.
  9. Castillo

    My Build Script

    Nice one, keep the good work
  10. Uhh, this is a rip of my "PDA" resource but added the Shops, if you want one to buy vehicles and weapons download one of my resources named "shop". https://community.multitheftauto.com/index.php?p= ... ils&id=720
  11. you can't change it's sound, but you could attach a sound to it maybe.
  12. Castillo

    HELP

    Valhalla's game mode never got released.
  13. The attach part can be done by script if i'm not wrong, there was a "Smilys" resource at community.
  14. copy the last code, i've found a error and edited it.
  15. function enterVehicle ( theVehicle, seat, jacked ) outputChatBox ( "You sit in the car and suddenly feel extremely drunk!", source ) cheesetime = setTimer(peds, 2000,0,source) --add effects after, this is what i tried to delete seeing as you dont need it. end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), enterVehicle ) function peds(player) local x, y, z = getElementPosition ( player ) local target = createPed(math.random(0,150), x+5, y, z) if not target then outputChatBox("Invalid player", player) end local x,y,z = getElementPosition(target) local tx,ty,tz = getElementPosition(player) setPedRotation(target, findRotation(x,y,tx,ty) ) end Should work.
  16. The link works, but i've uploaded it to mediafire for you. http://www.mediafire.com/?h22vq9xqufwo21v
  17. https://wiki.multitheftauto.com/wiki/Modules/MTA-MySQL
  18. where are you getting this models from if you don't even know how to make a meta.xml?
  19. you gotta be kidding me, don't you know how to copy something and change it's name??
  20. <meta> <info author="Someone" version="1.0.0" type="script" description="Hydra replace" /> <script src="hydra.lua" type="client" /> <file src="hydra.txd" /> <file src="hydra.dff" /> </meta> "DATA" was a folder
  21. <meta> <info author="Someone" version="1.0.0" type="script" description="Hydra replace" /> <script src="hydra.lua" type="client" /> <file src="data/hydra.txd" /> <file src="data/hydra.dff" /> </meta>
  22. Please, don't double-post, use "EDIT" button instead, thank you.
  23. Well, you are messing client functions/events with server functions/events, use this one instead, client side: local X = 0.375 local Y = 0.375 local Width = 0.25 local Height = 0.25 wdwSpawn = guiCreateWindow(X, Y, Width, Height, "Select a Spawn area", true) X = 0.415 Y = 0.7 Width = 0.25 Height = 0.2 btnPine = guiCreateButton(X, Y, 0.3, 0.15, "Angel Pine", true, wdwSpawn) btnBerry = guiCreateButton(X, Y, 0.5, 0.15, "Blueberry", true, wdwSpawn) guiSetVisible(wdwSpawn, false) function angelpine(button, state) if button == "left" and state == "up" then triggerServerEvent("spawn",getLocalPlayer(),getLocalPlayer(),"angel") guiSetInputEnabled(false) guiSetVisible(wdwSpawn, false)--208.2, -240, 1.8 showCursor(false) end end addEventHandler("onClientGUIClick", btnPine, angelpine, false) function blueberry(button, state) if button == "left" and state == "up" then triggerServerEvent("spawn",getLocalPlayer(),getLocalPlayer(),"blueberry") guiSetInputEnabled(false) guiSetVisible(wdwSpawn, false) showCursor(false) end end addEventHandler("onClientGUIClick", btnBerry, blueberry, false) function window(ammo, attacker, weapon, bodypart) if (wdwSpawn ~= nil) then guiSetVisible(wdwSpawn, true) else outputChatBox("Unexpected error: Spawn GUI has not been created.") end showCursor(true) guiSetInputEnabled(true) end function start() setTimer(window, 9000, 1) end addEventHandler ( "onClientPlayerWasted", getLocalPlayer(), start) function start2() setTimer(window, 1000, 1) end addEventHandler ( "onClientResourceStart", getRootElement(), start2) server side: addEvent("spawn",true) addEventHandler("spawn",getRootElement(), function (client,where) if where == "blueberry" then spawnPlayer(client, 208.2+math.random(1,3),-240+math.random(1,3), 1.8, 90, math.random(281,286)) fadeCamera(client, true) setCameraTarget(client, client) giveWeapon(client, 25, 25) givePlayerMoney(client, 250) outputChatBox("Spawning in Blueberry...",client) elseif where == "angel" then spawnPlayer(client, -2138.8+math.random(1,5), -2352+math.random(4,7), 37.732, 90, math.random(281,286)) fadeCamera(client, true) setCameraTarget(client, client) giveWeapon(client, 25, 25) givePlayerMoney(client, 250) outputChatBox("Spawning in Angel Pine...") end end) You must define client or server at meta.xml, example: <script src="script.lua" type="client" />
  24. Castillo

    Rate

    https://community.multitheftauto.com/index.php?p= ... ils&id=468 The resource already includes that.
  25. Castillo

    timer problem

    I don't understand what do you mean
×
×
  • Create New...