-
Posts
10,056 -
Joined
-
Last visited
-
Days Won
27
Everything posted by iPrestege
-
Car = {} marker = {} addEventHandler("onPlayerJoin",root, function() plr = source marker[plr] = createMarker ( -3561.47046, -3002.50342, 45.00155, "cylinder", 2, 0, 0, 255, 255,source) function make(player) if ( player == plr and getElementType (player) == "player" ) then if ( Car[player] and getElementType (Car[player]) == "vehicle" ) then destroyElement(Car[player]) Car[player] = nil end Car[player] = createVehicle ( 562, -3561.47046, -3002.50342, 45.00155 ) if Car[player] then warpPedIntoVehicle(player,Car[player]) end end end addEventHandler( "onMarkerHit", marker[plr], make) end) addEventHandler("onPlayerQuit",root, function() if Car[source] then destroyElement(Car[source]) Car[source] = nil end if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end end) addEvent("onCheckDownload",true) addEventHandler("onCheckDownload",root, function() if Car[source] then destroyElement(Car[source]) Car[source] = nil end if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end end)
-
Change Command Name .
-
== Client Side == function spawn() triggerServerEvent("onCheckDownload",localPlayer) end setTimer(spawn, 100, 1) == Server Side == Car = {} marker = {} addEventHandler("onPlayerJoin",root, function() plr = source marker[plr] = createMarker ( x,y,z, "cylinder", 2, 255, 0, 0, 255,source) function make(player) if ( player == plr and getElementType (player) == "player" ) then local x,y,z = getElementPosition (player) if ( Car[player] and getElementType (Car[player]) == "vehicle" ) then destroyElement(Car[player]) Car[player] = nil end Car[player] = createVehicle ( 562, x, y, z ) if Car[player] then warpPedIntoVehicle(player,Car[player]) end end end addEventHandler( "onMarkerHit", marker[plr], make) end) addEventHandler("onPlayerQuit",root, function() if Car[source] then destroyElement(Car[source]) Car[source] = nil end if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end end) addEvent("onCheckDownload",true) addEventHandler("onCheckDownload",root, function() if Car[source] then destroyElement(Car[source]) Car[source] = nil end if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end end)
-
Ok No Problem But i test it and it works .
-
== Client Side == GUIEditor = { gridlist = {}, button = {}, memo = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(387, 207, 243, 312, "Select a skin please", false) guiSetVisible(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(9, 25, 135, 269, false, GUIEditor.window[1]) local Column = guiGridListAddColumn(GUIEditor.gridlist[1], "Skin Name", 0.4) local Column1 = guiGridListAddColumn(GUIEditor.gridlist[1], "id", 0.4) GUIEditor.button[1] = guiCreateButton(153, 251, 77, 26, "Select", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.memo[1] = guiCreateMemo(155, 66, 73, 127, "You can change the skin, when you login and when you die.", false, GUIEditor.window[1]) Skins = { {"CJ",0}, {"Hooker",178}, {"Firefighter",277}, {"Gangster",115}, {"SchoolGirl",152}, {"Ninja",204}, {"Mafia",166}, {"Farmer",161}, {"Chicken",167}, {"Elvis",82} } for i,v in ipairs (Skins) do local row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1], row, 1, v[1], false, true) guiGridListSetItemText (GUIEditor.gridlist[1], row, 2, v[2], false, true) end addEventHandler("onClientGUIClick",root, function() if (source == GUIEditor.button[1]) then local row,Column = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) local id = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1], row, 2 )) if ( row and Column and row ~= -1 and Column ~= -1 ) then triggerServerEvent("onClick", localPlayer, id) end end end ) addEvent("show",true) addEventHandler("show",root, function () guiSetVisible(GUIEditor.window[1], true) showCursor(true) end) == Server Side == addEvent("onClick", true) addEventHandler("onClick", root, function(id) setElementModel(source,tonumber(id)) end ) addEventHandler("onPlayerLogin", root, function () triggerClientEvent("show",root) end) Login To The Server And The GUI Will Start .
-
Car = {} marker = {} addEventHandler("onPlayerJoin",root, function() marker[source] = createMarker ( x,y,z,"cylinder", 2, 255, 0, 0, 255,source) function make(player) if ( player and getElementType (player) == "player" ) then local x,y,z = getElementPosition (player) if ( Car[player] and getElementType (Car[player]) == "vehicle" ) then destroyElement(Car[player]) Car[player] = nil end Car[player] = createVehicle ( 562, x, y, z ) if Car[player] then warpPedIntoVehicle(player,Car[player]) end end end addEventHandler( "onMarkerHit", marker[source], make) end) addEventHandler("onPlayerQuit",root, function() if Car[source] then destroyElement(Car[source]) Car[source] = nil end if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end end) addEvent("onCheckDownload",true) addEventHandler("onCheckDownload",root, function() if Car[source] then destroyElement(Car[source]) Car[source] = nil end if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end end)
-
Car = {} marker = {} addEventHandler("onPlayerJoin",root, function() marker[source] = createMarker ( x,y,z, "cylinder", 2, 255, 0, 0, 255,source) function make(player) if ( getElementType (player) == "player" ) then local x,y,z = getElementPosition (player) if ( Car[player] and getElementType (Car[player]) == "vehicle" ) then destroyElement(Car[player]) Car[player] = nil end Car[player] = createVehicle ( 562, x, y, z ) if Car[player] then warpPedIntoVehicle(player,Car[player]) end end end addEventHandler( "onMarkerHit", marker[source], make) end) addEventHandler("onPlayerQuit",root, function() if Car[source] then destroyElement(Car[source]) Car[source] = nil end if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end end) addEvent("onCheckDownload",true) addEventHandler("onCheckDownload",root, function() if Car[source] then destroyElement(Car[source]) Car[source] = nil end if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end end) ماركر مخفي ظاهر للي عنده تحميل بس وراح يعطية الموتر ذذ
-
اضمن لك الكود شغال سويتة ساعه ض/ اكيد يشتغل / =
-
== Server Side == Car = {} marker = {} addEventHandler("onPlayerJoin",root, function() marker[source] = createMarker ( x,y,z, "cylinder", 2, 255, 0, 0, 255,source) function make(player) if ( player == source and getElementType (player) == "player" ) then local x,y,z = getElementPosition (player) if ( Car[player] and getElementType (Car[player]) == "vehicle" ) then destroyElement(Car[player]) Car[player] = nil end Car[player] = createVehicle ( 562, x, y, z ) if Car[player] then warpPedIntoVehicle(player,Car[player]) end end end addEventHandler( "onMarkerHit", marker[source], make) end) addEventHandler("onPlayerQuit",root, function() if Car[source] then destroyElement(Car[source]) Car[source] = nil end if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end end) addEvent("onCheckDownload",true) addEventHandler("onCheckDownload",root, function() if Car[source] then destroyElement(Car[source]) Car[source] = nil end if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) marker[source] = nil end end) == Client Side == addEventHandler("onClientResourceStart",resourceRoot, function () triggerServerEvent("onCheckDownload",localPlayer) end) اطلع من السيرفر وادخل وانت مخلص التحميل بتحصل الماركر مايعطي سيارة واذا فية تحميل بيعطيك سيارة ذذ
-
I really did not see this .
-
it works with me and create marker and blip ! show you,re meta.xml
-
What you mean with "findRotation" you mean getElementRotation ??
-
function setAdminSkin() if hasObjectPermissionTo(source, "command.ban", true) then setElementModel(source,268) outputChatBox("Welcome admin, your skin has been set to: Admin server skin.",source,255,0,0) end end
-
You,re Welcome .
-
Open The File On The Resource That Have Help.Xml File And Edit It And Have Fun .
-
Yes I try it and it works!
-
Do you want to pay or what?
-
== Server Side == function marker ( thePlayer, commandName ) if ( getElementType(thePlayer) == "player" ) then local team = getPlayerTeam (thePlayer) if ( team and getTeamName ( team ) == "Staff" ) then local x, y, z = getElementPosition ( thePlayer ) markerevento = createMarker ( x + 2, y + 2, z - 1, "cylinder", 1.5, 255, 0, 0, 170 ) blip = createBlipAttachedTo ( markerevento, 49, 1 ) dim = getElementDimension ( thePlayer ) int = getElementInterior( thePlayer ) setElementDimension ( markerevento, dim ) setElementInterior ( markerevento, int ) outputChatBox ( "#00FF00An event has just been created use #FF0000/eventwarp #00FF00now!", getRootElement(), 255, 255, 255, true ) else outputChatBox ( "Event cannot be created :/", thePlayer ) end end end addCommandHandler ( "event", marker )
-
== Client Side == GUIEditor = { gridlist = {}, button = {}, memo = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(387, 207, 243, 312, "Select a skin please", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(9, 25, 135, 269, false, GUIEditor.window[1]) local Column = guiGridListAddColumn(GUIEditor.gridlist[1], "Skin Name", 0.4) local Column1 = guiGridListAddColumn(GUIEditor.gridlist[1], "id", 0.4) GUIEditor.button[1] = guiCreateButton(153, 251, 77, 26, "Select", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.memo[1] = guiCreateMemo(155, 66, 73, 127, "You can change the skin, when you login and when you die.", false, GUIEditor.window[1]) Skins = { {"CJ",skinid}, {"Hooker",skinid}, {"Firefighter",skinid}, {"Gangster",skinid}, {"SchoolGirl",skinid}, {"Ninja",skinid}, {"Mafia",skinid}, {"Farmer",skinid}, {"Chicken",skinid}, {"Elvis",skinid} } for i,v in ipairs (Skins) do local row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1], row, 1, v[1], false, true) guiGridListSetItemText (GUIEditor.gridlist[1], row, 2, v[2], false, true) end addEventHandler("onClientGUIClick",root, function() if (source == GUIEditor.button[1]) then local row,Column = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) local id = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1], row, 2 )) if ( row and Column and row ~= -1 and Column ~= -1 ) then triggerServerEvent("onChose", localPlayer, id) end end end ) == Server Side == addEvent("onChose", true) addEventHandler("onChose", root, function(id) setElementModel(source,tonumber(id)) end ) Has not been tested but should work!
-
marker = createMarker ( -2721.6999511719,-319,7.8000001907349 ,"cylinder", 2, 255, 0, 0, 170 ) addEventHandler("onClientMarkerHit",marker, function (player) if ( getElementType (player) == "player" ) then setElementPosition (player, -2410.5, -671.29998779297,137.30000305176) end end)