-
Posts
284 -
Joined
-
Last visited
Everything posted by GerardWay
-
Oh yeah, sorry haha. The GUI itself fails to appear ingame.
-
Thanks, seems that not many people are interested
-
What's the problem with this? Any help is appreciated! Client.lua function spawnTeamGUI() local sWidth, sHeight = guiGetScreenSize() local Width,Height = 180,220 local X = (sWidth/2) - (Width/2) local Y = (sHeight/2) - (Height/2) LoginTeam = guiCreateWindow(X, Y, Z, Width, Height, 767,"Choose team",false) guiWindowSetMovable(helpWindow, false) guiWindowSetSizable(helpWindow, false) guiSetVisible(LoginTeam, false) SWAT = guiCreateButton( 18, 63, 125, 35, "SFPD SWAT", false, LoginTeam ) Marines = guiCreateButton( 18, 103, 125, 35, "US Marines", false, LoginTeam ) Army = guiCreateButton( 18, 143, 125, 35, "US Army", false, LoginTeam ) Survivors = guiCreateButton( 18, 183, 125, 35, "Survivors", false, LoginTeam ) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function () createTeleportWindow() end ) function showGUI() guiSetVisible(helpWindow, true) showCursor(true) guiSetInputEnabled(true) end addEventHandler("onClientResourceStart", showGUI) function setTeam(button,state) if button == "left" and state == "up" then if source == SWAT then triggerServerEvent("Swat", localPlayer) outputChatBox("You have joined SFPD SWAT!") guiSetVisible ( window, false ) showCursor ( false ) elseif source == Marines then triggerServerEvent("Usm", localPlayer) outputChatBox("You have joined US Marines") guiSetVisible ( window, false ) showCursor ( false ) elseif source == Army then triggerServerEvent("Army", localPlayer) outputChatBox("You have joined US Army") guiSetVisible ( window, false ) showCursor ( false ) elseif source == Survivors then triggerServerEvent("Survivors", localPlayer) outputChatBox("You have joined Survivors") guiSetVisible ( window, false ) showCursor ( false ) end end ) addEvent ( "setSpawnVisible", true ) addEventHandler ( "setSpawnVisible", root, function ( ) if guiGetVisible ( LoginTeam ) == false then guiSetVisible ( LoginTeam, true ) setTimer( function () showCursor( true ) end, 1000,1 ) end end ) Server.lua function Swat ( ) spawnPlayer ( source, -1615.8344, 679.9478, 7.2, 90.0, 285 ) Police = createTeam ( "SWAT", 0, 0, 255 ) setPlayerTeam(source, Swat) fadeCamera (source, true) setCameraTarget (source, source) end addEvent ( "Swat", true ) addEventHandler ( "Swat", getRootElement(),Swat ) function ShowWindow ( ) triggerClientEvent ( source, "setSpawnVisible", source ) end addEventHandler ( "onPlayerLogin", root, ShowWindow ) addEventHandler ( "onPlayerWasted", root, ShowWindow )
-
Thanks man, helps a lot!
-
How can I have a script that plays an internet Radio Station to the whole server? (all of the players) The station I want to be played is this: http://www.181.fm/winamp.pls?station=18 ... 0(Top%2040)&file=181-power.pls Any help is appreciated:)
-
Thanks, it works. People cant use the passenger seats of the vehicles now! D: Can you guys fix it please?
-
That isnt the problem, the vehicles dont even appear O_O But thanks anyway
-
rancher = createVehicle ( 490, 101.17621, 1942.22717, 18.41861 ) addEventHandler ( "onVehicleStartEnter", rancher, function ( thePlayer ) if ( not isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( "Adam" ) ) ) then outputChatBox ( "You cannot use this vehicle as it belongs to Adam!", thePlayer, 255, 0, 0 ) cancelEvent ( ) end end ) sultan = createVehicle ( 560, -398.38452, 1290.49658, 9.23544 ) addEventHandler ( "onVehicleStartEnter", sultan, function ( thePlayer ) if ( not isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( "Martin" ) ) ) then outputChatBox ( "You cannot use this vehicle as it belongs to Martin!", thePlayer, 255, 0, 0 ) cancelEvent ( ) end end ) function martinVehicle() setElementPosition (source, -400.31415, 1294.04468, 9.95310) end addCommandHandler ( "mv", martinVehicle ) function adamVehicle() setElementPosition (source, 92.69779, 1945.70471, 18.06420) end addCommandHandler ("av", adamVehicle)
-
It isnt my server. I don't own this. I was simply reporting the issue. Damn, try to help out around here and get b**lshit in return.
-
If you're suggesting that we give you a Valhalla script, I don't think ANYONE will do that. Script Stealing is forbidden on this forum.
-
Woovie, ONE of the server scripts is a community script. If you assume stuff like that, and act so.... unfriendly and making me feel unwelcome here, You SHOULDN'T be a moderator.
-
I know for a fact that i've missed something out here, but what is it? function adminMusic() local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then adminMusic = playSound("joinsound.mp3") end addCommandHandler ("ps115", adminMusic) function stopMySound() stopSound( adminMusic ) end addCommandHandler ( "ss115", stopMySound )
-
This server copied Zombie Outbreak - Reloaded's whole System, ACL, and scripts! A while ago, ZO-RELOADED was hacked and shutdown by somebody. It's back up now. But a new server has opened with EVERY ZO-RELOADED Script. Each script is individually made and NOT copied or Downloaded. Apart from the Zombies script itself. mtasa://178.33.132.119:2013
-
Could anybody make me a quick script that allows an Admin to walk underwater if he types "/water" and then disable it when he types "/water" again please? Thank You so much to anyone who does
-
Mine is fixed, had a problem with my computer. Chlusniembousniem, forward these ports: UDP - 22003 ---> 22126 TCP - 22005 ---> 22007
-
Will do, if it breaks is that a good sign?
-
This was meant to be posted on another account, but it isnt working. Hello everyone! We are "T.W.Y.W Web Designing" (The Way You Want Web Designing). We create websites suitable for a simple business such as Scripting, Mapping, Selling items etc... And we would like to share our business with you! With one of our websites, you can promote your business / company very easily, as well as giving people an easier way to find out about it! Our Prices range for different page types, but we offer A cheap and easy way to get your website up and running! Sick of nobody taking notice in your business or Company? Maybe it's because people are not receiving enough information about you! With A Website that includes your Business / Company's information and Pricing, as well as a "Contact Us" page, you could get much more customers! So what are you waiting for? Get your own Website today! And let your customers know much more about your business! PRICE LIST: Basic Package 1 Homepage + 1 Price List - £5.00 / $7.50 Information Package 1 Homepage + 1 Price List + 1 Contact Page - £7.50 / $11.50 Premium Package 1 1 Homepage + 1 Price List + 1 Contact Page + 1 Additional Page - £9.00 / $14.00 Premium Package 2 1 Homepage + 1 Price List + 1 Contact Page + 3 Additional Pages - £11.50 / $18.00 Gold Package 1 Homepage + 1 Price List + 1 Contact Page + Any 3 Widgets + Domain Name (1 Year) - £16.00 / $25.00 Server Hosting Package 1 Homepage + 2 Price Lists + 1 Contact Page + 1 Widget + Support Games List + Download Page - £16.00 / $25.00 SPECIAL OFFER: BUY PREMIUM PACKAGE 2 AND GET A SECOND WEBSITE WITH BASIC PACKAGE FOR FREE! (Limited Time Only!) PAYMENT METHOD: Paypal CONTACT METHOD: Skype - twyw2013 PM - This Account © T.W.Y.W Web Hosting 2013
-
I havent got an IP set in MTASERVER.conf
-
Still no result. I dont understand why they suddenly stopped working
-
Thanks Robbster
-
Oh what so I have to disable Chuck Norris now? Nah but seriously I'll try, thanks
