Jump to content

GerardWay

Members
  • Posts

    284
  • Joined

  • Last visited

Everything posted by GerardWay

  1. How could I make writing appear above a marker? I have a marker that spawns players as a different team and stuff like that when they walk into it, and I would need the text to say "REBELS". Any help is really appreciated!
  2. GerardWay

    V.I.P GUI

    Could anybody fix this so that it only opens to players in the 'V.I.P' team please? Also, the Panel stops showing whenever another resource is started. Client.lua GUIEditor = { button = {}, window = {}, label = {} } local x, y = guiGetScreenSize() GUIEditor.window[100] = guiCreateWindow(-3, 0, 742, 212, "WWZ V.I.P Panel", false) guiWindowSetMovable(GUIEditor.window[100], true) guiWindowSetSizable(GUIEditor.window[100], false) guiSetVisible(GUIEditor.window[100], false) Button1 = guiCreateButton(21, 27, 172, 66, "Give 5 Heatseeker Rockets", false, GUIEditor.window[100]) Button2 = guiCreateButton(247, 49, 223, 102, "Play as Roman Bellic", false, GUIEditor.window[100]) Button3 = guiCreateButton(524, 141, 172, 61, "Spawn Bullet", false, GUIEditor.window[100]) Button4 = guiCreateButton(524, 26, 172, 66, "Jetpack", false, GUIEditor.window[100]) Button5 = guiCreateButton(21, 141, 172, 61, "Repair Current Vehicle", false, GUIEditor.window[100]) GUIEditor.label[1] = guiCreateLabel(263, 24, 291, 15, "Choose any of the VIP options", false, GUIEditor.window[100]) addEventHandler("onClientGUIClick", Button1, function() triggerServerEvent("newArmor",getLocalPlayer()) end ) addEventHandler("onClientGUIClick", Button2, function() triggerServerEvent("VIPskin",getLocalPlayer()) end ) addEventHandler("onClientGUIClick", Button3, function() triggerServerEvent("vehicleSpawn",getLocalPlayer()) end ) addEventHandler("onClientGUIClick", Button4, function() triggerServerEvent("jetpackOnAndOff", getLocalPlayer()) end ) addEventHandler("onClientGUIClick", Button5, function() triggerServerEvent("fixMyVehicle",getLocalPlayer()) end ) function show() if guiGetVisible(GUIEditor.window[100]) == true then guiSetVisible(GUIEditor.window[100], false) showCursor(false) guiSetInputEnabled(false) else guiSetVisible(GUIEditor.window[100], true) showCursor(true) guiSetInputEnabled(true) end end addCommandHandler("vipGUI", show) function bindGUI ( player ) bindKey("F7", "down", show) end addEventHandler("onClientResourceStart", root, bindGUI) addEventHandler("onPlayerJoin", root, bindGUI) Server.lua function fullArmor() giveWeapon (source, 36, 5) end addEvent ("newArmor",true) addEventHandler ("newArmor",getRootElement(),fullArmor) function setVIPSkin() setElementModel ( source, "50" ) end addEvent("VIPskin",true) addEventHandler("VIPskin",getRootElement(),setVIPSkin) function spawnCar() if ( not isPedInVehicle ( source ) ) then local x, y, z = getElementPosition ( source ) veh = createVehicle ( 541, x + 3, y, z ) warpPedIntoVehicle (source, veh) end end addEvent("vehicleSpawn",true) addEventHandler("vehicleSpawn",getRootElement(),spawnCar) function jetPack() if ( not isPedInVehicle ( source ) ) then if ( not doesPedHaveJetPack ( source ) ) then givePedJetPack ( source ) outputChatBox ( "You now have jetpack.", source ) else removePedJetPack ( source ) outputChatBox ( "You have removed your jetpack.", source ) end end end addEvent("jetpackOnAndOff",true) addEventHandler("jetpackOnAndOff",getRootElement(),jetPack) function fixTheVehicle( vehicle ) if isPedInVehicle ( source ) then fixVehicle(getPedOccupiedVehicle(source)) end end addEvent("fixMyVehicle", true) addEventHandler("fixMyVehicle",getRootElement(),fixTheVehicle)
  3. "Booker" type="script" name="USMC Area" description="USMC Squad" />
  4. Didn't work, could you provide a Meta.xml too so I can make sure my Meta is correct please?
  5. Didn't work, but thanks anyway
  6. Can anyone fix this please? Nothing in this script works. function usmc() setElementModel (source, 287) give weapon (source, 28, 500) createTeam ("USMC") setPlayerTeam (source, USMC) end addCommandHandler ("usmc", usmc)
  7. Thanks for all of your help guys, abxf sent me the solution through Facebook and it works now.
  8. meta.xml "Booker" name="image" version="0.1" type="script"/>
  9. Nothing, didn't work and it failed to output anything to the Chatbox, thanks anyway.
  10. There aren't any errors in the Debug.
  11. Nope. still nothing.
  12. None of these images are showing up when I start the resource. Could anyone help please? client.lua function draw() dxDrawImage(1049, 696, 13, 34, "mtalogo.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(406, 674, 656, 32, "mtalogo.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(406, 726, 656, 32, "mtalogo.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(406, 696, 20, 35, "mtalogo.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) end ) function HandleTheRendering ( ) addEventHandler("onClientRender", getRootElement(), draw) end addEventHandler("onClientResourceStart",resourceRoot, HandleTheRendering) Meta.xml <meta> <info author="Booker" name="image" version="0.1" type="script"/> <script src="client.lua" type="client" /> <!-- gameplay icons --> <file src="mtalogo.png" /> </meta>
  13. I'm not trying to be disrespectful, but please don't reply unless you're interested. I want this topic to stay organised.
  14. Hey everyone. I'm selling a Gang Panel suitable for any kind of server, and I'm looking for offers! Here are some screenshots: http://www.hostimg.org/show-image.php?i ... 902cab4b19 http://www.hostimg.org/show-image.php?i ... c37a0f8e8f http://www.hostimg.org/show-image.php?i ... c32d5d1dcf http://www.hostimg.org/show-image.php?i ... c29e46eda7 http://www.hostimg.org/show-image.php?i ... 204bbc9812 Gangs/Groups can be created using '/create (Desired Name)' and the Gang Panel can be triggered using the command '/gang'. If you're interested, please contact me on Skype or send me a PM. Skype Name: teambarrelgaming
  15. Hahahahah! Omfg! I know Jimmy Force, he's a regular player on my server. He's obsessed with mods and basically tries to take over my server.
  16. It says there's an unexpected symbol at line 2, iFahad
  17. Tried both suggestions, neither worked
  18. Hey guys, can anyone help with this? The Help Panel doesn't show, and I'm pretty sure its because of Server.lua - Here are the files: client.lua GUIEditor = { button = {}, window = {}, staticimage = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(239, 37, 886, 690, "Admin Commands", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF21AEFF") GUIEditor.label[1] = guiCreateLabel(10, 102, 566, 114, "Staff Area Gate Commands", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "sa-header") guiLabelSetColor(GUIEditor.label[1], 33, 174, 255) GUIEditor.label[2] = guiCreateLabel(73, 169, 291, 110, "Main Entrance - /mainstaffo ", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[2], 43, 159, 27) GUIEditor.label[3] = guiCreateLabel(73, 154, 289, 141, "Main Entrance Closed - /mainstaffc", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[3], 43, 159, 27) GUIEditor.label[4] = guiCreateLabel(52, 206, 310, 63, "Entrance to Staff Area through Car Park - /cpo", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[4], 43, 159, 27) GUIEditor.label[5] = guiCreateLabel(52, 222, 359, 112, "Entrance to Staff Area through Car Park Closed - /cpc", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[5], 43, 159, 27) GUIEditor.button[1] = guiCreateButton(262, 579, 377, 101, "Close", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFD10000") GUIEditor.label[6] = guiCreateLabel(52, 251, 256, 112, "Car Park Entrance - /cpopen", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[6], 43, 159, 27) GUIEditor.label[7] = guiCreateLabel(52, 266, 242, 39, "Car Park Entrance Closed - /cpclosed", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[7], 43, 159, 27) GUIEditor.staticimage[1] = guiCreateStaticImage(374, 144, 391, 234, ":PLAGUEScriptEditor/images/examples/shruk.png", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.staticimage[1], "ImageColours", "tl:FFD10000 tr:FFD10000 bl:FFD10000 br:FFD10000") GUIEditor.label[8] = guiCreateLabel(0, 0, 488, 164, "Admin Team - Commands", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[8], "default-bold-small") GUIEditor.label[9] = guiCreateLabel(389, 455, 376, 134, "Fly - /superman", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[9], 59, 18, 236) GUIEditor.label[10] = guiCreateLabel(389, 474, 147, 86, "Admin Skin - /staffskin", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[10], 59, 18, 236) GUIEditor.label[11] = guiCreateLabel(372, 392, 368, 67, "Misc Commands", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[11], "sa-header") guiLabelSetColor(GUIEditor.label[11], 0, 172, 209) end ) addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[1] then guiSetVisible(GUIEditor_window[1], false) showCursor(false) addEvent("setHelpVisible",true) addEventHandler("setHelpVisible",root, function () guiSetVisible( GUIEditor_window[1], true ) setTimer( function () showCursor( true ) end, 1000,1) end ) server.lua function trigger( ) triggerClientEvent ( source, "setHelpVisible", getRootElement()) end addCommandHandler ("adminhelp", trigger) And I also need to know how to make the panel only open to players in the ACL Groups Admin, Super Moderator, Moderator and RPC. Any help is appreciated!
  19. I have added an explosion sound for grenades, and the sound plays as soon as I throw it. How can I make the sound play when the Grenade explodes instead? function projectileCreation() playSound ("sounds/Grenade.wav") end addEventHandler ("onClientProjectileCreation, getRootElement(), projectileCreation)
  20. How could I change the sound of the projectile from Hunters/Hydras to a sound from a file called "Explosion.wav" ? And could you give me an example please? Thank you!
  21. I've hosted with Fibre Optic, on the biggest amount of slots available! I got really low ping the whole time, and great support 24/7! I would highly recommend hosting with Fibre Optic, as there really can't be a more supportive host mate! However, I don't think Mysql is available
  22. Hello, on behalf of the players that have been helped on this forum, I would like to give A massive 'Thanks!' to the people that help other players, even i've been helped a lot. You help so many players with LUA, Language Support, Glitches, General Questions/problems etc... And I honestly think you people are great! I would have gave up with scripting and coding, if it wasn't for the help I recieve! So once again, a massive thanks to everyone that helps out here, and spends so much of their time making sure other players enjoy their experience As well as this, congratulations to the MTA:SA Dev's, for making possibly the BEST online modification around, well done. I've been a player on MTA since it first released to the public, and i've been a fan ever since. Also, special thanks to 'Solidsnake14' (also known as 'Castillo') as he's helped Me AND a lot of other players so many times, its unbelievable.
×
×
  • Create New...