
Baseplate
Members-
Posts
1,417 -
Joined
-
Last visited
Everything posted by Baseplate
-
Yup, old Guied dosent crash for me, so I kept using it
-
I don't believe so, only LUA support
-
Must create new script, as I don't know about the autoteams much.
-
Well you can use this function autoTeamColor () local vehicle = getPedOccupiedVehicle(source) local team = getPlayerTeam(source) if (team = getTeamFromName("Destruction Derby Skills")) setVehicleColor(vehicle, 255, 0, 255) end end addEventHandler("onPlayerSpawn", root, autoTeamColor) I'd suggest to use it in other script
-
You can't open a server means you can't forward your ports
-
Looks like a mobile broadband for me. I have a mobile broadband aswell Sorry, but have to tell you that you can't make servers on mobile broadbands
-
MTA Crashes, I'm running the lastest version and when I click on save the text
-
You create the pickup, cancel event, then a check, needed functions: createPickup cancelEvent getPlayerTeam
-
I think it has been deleted from community
-
Sorry for bumping, but whenever I start the resource and start creating the gui, when I wanna make for the gui a text or variable, it just crashes..
-
That's to save the wanted levels on death
-
Thanks for the reply, I already made the Column, I'll test it and i'll be back
-
Well here is my code for now, I want it to make someone have a wanted star when he kills someone and it outputs it on Scoreboard at WL Column Script: function wanted( ammo, attacker, weapon, bodypart ) if (attacker) and (attacker ~=source) then setPlayerWantedLevel ( attacker, getPlayerWantedLevel( attacker )+1 ) else local wanted = getPlayerWantedLevel( source ) setTimer(setPlayerWantedLevel, 60, 1, source, wanted) end end addEventHandler ( "onPlayerWasted", getRootElement(), wanted ) function showScoreWanted ( ammo, attacker, weapon, bodypart ) if (attacker) and (attacker ~=source) then local wanted = getPlayerWantedLevel ( attacker ) setElementData(attacker, "WL", tostring(wanted)) end end addEventHandler ( "onPlayerWasted", getRootElement(), showScoreWanted)
-
Looking for a professional scripter! Will get paid
Baseplate replied to BoneCountyRoleplay's topic in Scripting
Lolz, so you say that only 17 years old can script? and however what do you expect from the scripter to do? -
Eh, fool meh, Thanks guys
-
Thanks! now to put it in a label, can I use it client-sided?
-
:youdontsay: I know, but how to make the countdown counts?
-
Well, I wanna to make a countdown, which functions should I use?
-
Client: addEventHandler("onClientPlayerLogin", getRootElement(), function() triggerServerEvent( 'spawnOnLogin', getLocalPlayer() ) end ) ---Spawning the player to the Spawn Room--- spawnmarker = createMarker ( 1969.9000244141, -1517.8000488281, 970.79998779297 , "cylinder", 2, 9, 30, 213, 255 ) function MarkerHit ( hitPlayer, matchingDimension ) guiSetVisible(GUIEditor_Window[1], true) outputChatBox ( getPlayerName(hitPlayer) .. " entered a marker" ) end addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit ) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} guiSetVisible(GUIEditor_Window[1], false) GUIEditor_Window[1] = guiCreateWindow(147,141,749,548,"The Aviator Spawn Panel by Robbster",false) GUIEditor_Memo[2] = guiCreateMemo(80,56,627,302,'Welcome to to the Aviators Airline Gamemode!t\n\n-----\nINFO\nINFO \nINFO\nINFO\n-------\n\nHere are the ranks\n\nA student pilot is 0 points : These can fly everything except the Andromada, AT-400, military planes and military helicopters (hydra/hunter)\n\nA Private pilot is 150 points : These can fly everything except the Andromada and AT-400, and military planes and helicopters (hydra/hunter) and flying with the shamal will be x1.5 the amount of money a student pilot earns\n\nA Commercial pilot is 250 points : These can fly everything except the military planes and helicopters (hydra/hunter)\n\nArmy pilots is 500 points : These can fly everything\nIn an airline, all airplanes of the airline can be used not matter what \"level\" you are.',false,GUIEditor_Window[2]) GUIEditor_Label[1] = guiCreateLabel(270,398,94,46,"",false,GUIEditor_Window[2]) Server: function spawn() spawnPlayer ( source , 1958.7082519531, -1517.5471191406, 973.55889892578) end addEvent( 'spawnOnLogin', true ) addEventHandler('spawnOnLogin', getRootElement(), spawn)
-
Client: addEventHandler("onClientPlayerLogin", getRootElement(), function() triggerServerEvent( 'spawnOnLogin', localPlayer ) end ) ---Spawning the player to the Spawn Room--- spawnmarker = createMarker ( 1969.9000244141, -1517.8000488281, 970.79998779297 , "cylinder", 2, 9, 30, 213, 255 ) function MarkerHit ( hitPlayer, matchingDimension ) guiSetVisible(GUIEditor_Window[2], true) outputChatBox ( getPlayerName(hitPlayer) .. " entered a marker" ) end addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit ) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} guiSetVisible(GUIEditor_Window[2], false) GUIEditor_Window[2] = guiCreateWindow(147,141,749,548,"The Aviator Spawn Panel by Robbster",false) GUIEditor_Memo[2] = guiCreateMemo(80,56,627,302,'Welcome to to the Aviators Airline Gamemode!t\n\n-----\nINFO\nINFO \nINFO\nINFO\n-------\n\nHere are the ranks\n\nA student pilot is 0 points : These can fly everything except the Andromada, AT-400, military planes and military helicopters (hydra/hunter)\n\nA Private pilot is 150 points : These can fly everything except the Andromada and AT-400, and military planes and helicopters (hydra/hunter) and flying with the shamal will be x1.5 the amount of money a student pilot earns\n\nA Commercial pilot is 250 points : These can fly everything except the military planes and helicopters (hydra/hunter)\n\nArmy pilots is 500 points : These can fly everything\nIn an airline, all airplanes of the airline can be used not matter what \"level\" you are.',false,GUIEditor_Window[2]) GUIEditor_Label[1] = guiCreateLabel(270,398,94,46,"",false,GUIEditor_Window[2]) Server: function spawn() spawnPlayer ( source , 1958.7082519531, -1517.5471191406, 973.55889892578, 0, 1, 0, 0) end addEvent( 'spawnOnLogin', true ) addEventHandler('spawnOnLogin', getRootElement(), spawn) You used wrong variables on client.lua
-
or /start freeroam then /getpos
-
Client: addEventHandler("onClientPlayerLogin", getRootElement(), function() triggerServerEvent( 'spawnOnLogin', localPlayer ) end ) ---Spawning the player to the Spawn Room--- spawnmarker = createMarker ( 1969.9000244141, -1517.8000488281, 970.79998779297 , "cylinder", 2, 9, 30, 213, 255 ) function MarkerHit ( hitPlayer, matchingDimension ) guiSetVisible(GUIEditor_Window[1], true) outputChatBox ( getPlayerName(hitPlayer) .. " entered a marker" ) end addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit ) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} guiSetVisible(GUIEditor_Window[1], false) GUIEditor_Window[2] = guiCreateWindow(147,141,749,548,"The Aviator Spawn Panel by Robbster",false) GUIEditor_Memo[2] = guiCreateMemo(80,56,627,302,'Welcome to to the Aviators Airline Gamemode!t\n\n-----\nINFO\nINFO \nINFO\nINFO\n-------\n\nHere are the ranks\n\nA student pilot is 0 points : These can fly everything except the Andromada, AT-400, military planes and military helicopters (hydra/hunter)\n\nA Private pilot is 150 points : These can fly everything except the Andromada and AT-400, and military planes and helicopters (hydra/hunter) and flying with the shamal will be x1.5 the amount of money a student pilot earns\n\nA Commercial pilot is 250 points : These can fly everything except the military planes and helicopters (hydra/hunter)\n\nArmy pilots is 500 points : These can fly everything\nIn an airline, all airplanes of the airline can be used not matter what \"level\" you are.',false,GUIEditor_Window[2]) GUIEditor_Label[1] = guiCreateLabel(270,398,94,46,"",false,GUIEditor_Window[2]) Server: function spawn() spawnPlayer ( source , 1958.7082519531, -1517.5471191406, 973.55889892578, 0, 1, 0, 0) end addEvent( 'spawnOnLogin', true ) addEventHandler('spawnOnLogin', getRootElement(), spawn)
-
Server.lua g_Root = getRootElement() addEventHandler('onPlayerJoin', g_Root, function() local joinedPlayerName = getPlayerName ( source ) exports ["guimessages"] : outputServer ( source, "*" .. joinedPlayerName .. " has joined" , 0, 255, 0 ) end ) addEventHandler('onPlayerChangeNick', g_Root, function(oldNick, newNick) local joinedPlayerName = getPlayerName ( source ) exports ["guimessages"] : outputServer ( source, "*" .. oldNick .. "'#FFF000 is now known as: #00FF00'" .. newNick .. "'#FFF000", 0, 255, 0 ) end ) addEventHandler('onPlayerQuit', g_Root, function(reason) local QuitPlayerName = getPlayerName ( source ) exports ["guimessages"] : outputServer ( source," .. getPlayerName(source) .. "'#FF0000 has left the game #00ff00: #FF4500'" .. reason .. "'" , 255, 255, 255 ) end ) Meta.xml: <script src="server.lua" type="server"/>
-
Yup, I was just going to say that.