-
Posts
86 -
Joined
-
Last visited
Everything posted by Leonard.DC
-
Nice, good luck
-
Veh description not loading data when restarting
Leonard.DC replied to ..:D&G:..'s topic in Scripting
Are this the full code? If not put the full code or anyone can help you -
Why you ignore my post? I have added a event and triggered it from server side, like if player join the hud doesn't show, but onPlayerLogin the hud shows, if you need to remove the hud when the login panel opens, you must add it to the login panel script, or use the function Call
-
function grovestSlider(source) triggerClientEvent (source, "mess1", source) setCameraMatrix (source, 2463.8823242188, -1659.6778564453, 24.041973114014, 2547.9951171875, -1688.5211181641, -21.708633422852) fadeCamera (source, true, 1.5) setTimer(hosptSlider, 9500, 1, source) setTimer(fadeCamera, 8000, 1, source, false, 1.5) setTimer(fadeCamera, 9500, 1, source, true, 1.5) if isElement (lspdSlider) then destroyElement (lspdSlider) end end addEventHandler ( "onPlayerJoin", getRootElement(), grovestSlider) function onLoginEvent(source) setCameraTarget (source, source) fadeCamera (source, false, 1.0) setTimer (fadeCamera, 1500, 1, source, true, 1.0) if isElement (grovestSlider) then destroyElement (grovestSlider) end if isElement (hosptSlider) then destroyElement (hosptSlider) end if isElement (gleenpkSlider) then destroyElement (gleenpkSlider) end if isElement (airportSlider) then destroyElement (airporSlider) end if isElement (lspdSlider) then destroyElement (lspdSlider) end end addEventHandler ( "onPlayerLogin", getRootElement(), grovestSlider) function hosptSlider(source) triggerClientEvent (source, "mess2", source) destroyElement (grovestSlider) setCameraMatrix(source, 2014.4888916016, -1435.1318359375, 30.302476882935, 2066.4152832031, -1361.5522460938, -13.168096542358) setTimer(gleepkSlider, 9500, 1, source) setTimer(fadeCamera, 8000, 1, source, false, 1.5) setTimer(fadeCamera, 9500, 1, source, true, 1.5) end function gleenpkSlider(source) triggerClientEvent (source, "mess3", source) destroyElement (hosptSlider) setCameraMatrix(source, 2021.8934326172, -1172.9503173828, 59.716133117676, 1961.3312988281, -1213.3442382813, -8.8444747924805) setTimer(airportSliderSlider, 9500, 1, source) setTimer(fadeCamera, 8000, 1, source, false, 1.5) setTimer(fadeCamera, 9500, 1, source, true, 1.5) end function airportSlider(source) destroyElement (gleenpkSlider) triggerClientEvent (source, "mess4", source) setCameraMatrix(source, 1818.1273193359, -2406.4016113281, 105.4114074707, 1812.4464111328, -2485.5925292969, 44.612342834473) setTimer(lspdSlider, 9500, 1, source) setTimer(fadeCamera, 8000, 1, source, false, 1.5) setTimer(fadeCamera, 9500, 1, source, true, 1.5) end function lspdSlider(source) destroyElement (airportSlider) triggerClientEvent (source, "mess5", source) setCameraMatrix(source, 1493.1473388672, -1675.30078125, 42.586067199707, 1590.6865234375, -1672.4597167969, 20.722238540649) setTimer(grovestSlider, 9500, 1, source) setTimer(fadeCamera, 8000, 1, source, false, 1.5) setTimer(fadeCamera, 9500, 1, source, true, 1.5) end I think the client side its not necesary if the server side is bugged, peace , Regards
-
Of course, what script do you want i will create, if it free i will make something basic, say me and i will make it to show you
-
Hi, i have started programming just 2 years ago, and i never have the oportunity to register in this forum. Scripting Information. - Im cheap scripter - I never get scammed - I never scam - Usually active - Dominating all functions and handlers - Payment method is paypal - No experienced with databases (sql/xml) - Fast scripter First the buyer give me a little part of money, then i will send the script, then the buyer must give me the rest Contact e-mail: [email protected] If you need me i always can help you with a smile Regards and Thanks
-
If you need single cheap scripts, [email protected], i do not make full gamemodes
-
i dont know if i really understand you, but if you mean, this: function hosptSlider(source) ... I have alredy defined in all functions, its basic to do If not, put me a example please
-
Client: function hudComponents ( ) munitie = getPedTotalAmmo ( getLocalPlayer() ) clip = getPedAmmoInClip ( getLocalPlayer() ) IDarma = getPedWeapon(getLocalPlayer()) arma = getWeaponNameFromID(IDarma) viata = getElementHealth (localPlayer) armura = getPedArmor (localPlayer) bani = getPlayerMoney(thePlayer) end addEventHandler("loginHudShow",getRootElement(), hudComponents) addEvent ("loginHudShow", true) addEventHandler("onClientRender",getRootElement(), dxDrawRectangle(15, 240, 264, 78, tocolor(0, 0, 0, 209), false) dxDrawLine(15, 260, 278, 260, tocolor(255, 255, 255, 255), 1, false) dxDrawLine(15, 279, 278, 279, tocolor(255, 255, 255, 255), 1, false) dxDrawLine(15, 296, 278, 296, tocolor(255, 255, 255, 255), 1, false) dxDrawText("World Gaming Roleplay Hud", 14, 213, 277, 233, tocolor(255, 255, 255, 255), 0.90, "pricedown", "left", "top", false, false, true, false, false) dxDrawText("Bani: "..bani.." Lei",21.0,244.0,474.0,272.0,tocolor(0,255,0,255),0.5,"bankgothic","left","top",false,false,false) dxDrawText("Viata: "..tostring(math.floor(viata+0.5)).." %",20.0,264.0,296.0,280.0,tocolor(0,255,0,255),0.5,"bankgothic","left","top",false,false,false) dxDrawText("Armura: "..tostring(math.floor(armura+0.5)).." %",20.0,281.0,296.0,280.0,tocolor(0,255,0,255),0.5,"bankgothic","left","top",false,false,false) dxDrawText("Arma: "..arma.." | Munitie: "..clip.." / "..munitie,20.0,296.0,296.0,301.0,tocolor(0,255,0,255),0.5,"bankgothic","left","top",false,false,false) end ) Server: function showHudOnLogin () triggerClientEvent (source, "loginHudShow", source) end addEventHandler ("onPlayerLogin", getRootElement(), showHudOnLogin) (Not tested)
-
SolidSnake, I have alredy executed source in the timers, here is a first timers example: setTimer(hosptSlider, 9500, 1, ->source<-) setTimer(fadeCamera, 8000, 1, ->source<-, false, 1.5) setTimer(fadeCamera, 9500, 1, ->source<-, true, 1.5)
-
Thats all errors i get when i join for test
-
Black screen Sir, and more problems
-
cancelEvent onPlayerJoin or removeEventHandler onPlayerJoin There is the most i can say you, if you don't show the code
-
Hi, i don't know why this script doesn't work nice, the cameras doesn't change and the word doesn't appears, i looked the console server, and there are some bugs, but i have looked and the script have this problem fixed. Bad argument "triggerClientEvent" expected string at argument 1, got nil (Line 37) (I have not detect any problem) Bad argument "destroyElement" expected element at argument 1, got function (Line 38) (I have not detect any problem) Bad argument "setCameraMatrix" (Line 39) (I have not detect any problem) Bad argument "setTimer" expected function at argument 1, got nil (Line 40) (I have not detect any problem) Bad argument "fadeCamera" (Line 41) (I have not detect any problem) Bad argument "fadeCamera" (Line 42) (I have not detect any problem) All the function get broken , Why? Server function grovestSlider() triggerClientEvent (source, "mess1", source) setCameraMatrix (source, 2463.8823242188, -1659.6778564453, 24.041973114014, 2547.9951171875, -1688.5211181641, -21.708633422852) fadeCamera (source, true, 1.5) setTimer(hosptSlider, 9500, 1, source) setTimer(fadeCamera, 8000, 1, source, false, 1.5) setTimer(fadeCamera, 9500, 1, source, true, 1.5) if isElement (lspdSlider) then destroyElement (lspdSlider) end end addEventHandler ( "onPlayerJoin", getRootElement(), grovestSlider) function onLoginEvent() setCameraTarget (source, source) fadeCamera (source, false, 1.0) setTimer (fadeCamera, 1500, 1, source, true, 1.0) if isElement (grovestSlider) then destroyElement (grovestSlider) end if isElement (hosptSlider) then destroyElement (hosptSlider) end if isElement (gleenpkSlider) then destroyElement (gleenpkSlider) end if isElement (airportSlider) then destroyElement (airporSlider) end if isElement (lspdSlider) then destroyElement (lspdSlider) end end addEventHandler ( "onPlayerLogin", getRootElement(), grovestSlider) function hosptSlider() triggerClientEvent (source, "mess2", source) destroyElement (grovestSlider) setCameraMatrix(source, 2014.4888916016, -1435.1318359375, 30.302476882935, 2066.4152832031, -1361.5522460938, -13.168096542358) setTimer(gleepkSlider, 9500, 1, source) setTimer(fadeCamera, 8000, 1, source, false, 1.5) setTimer(fadeCamera, 9500, 1, source, true, 1.5) end function gleenpkSlider() triggerClientEvent (source, "mess3", source) destroyElement (hosptSlider) setCameraMatrix(source, 2021.8934326172, -1172.9503173828, 59.716133117676, 1961.3312988281, -1213.3442382813, -8.8444747924805) setTimer(airportSliderSlider, 9500, 1, source) setTimer(fadeCamera, 8000, 1, source, false, 1.5) setTimer(fadeCamera, 9500, 1, source, true, 1.5) end function airportSlider() destroyElement (gleenpkSlider) triggerClientEvent (source, "mess4", source) setCameraMatrix(source, 1818.1273193359, -2406.4016113281, 105.4114074707, 1812.4464111328, -2485.5925292969, 44.612342834473) setTimer(lspdSlider, 9500, 1, source) setTimer(fadeCamera, 8000, 1, source, false, 1.5) setTimer(fadeCamera, 9500, 1, source, true, 1.5) end function lspdSlider() destroyElement (airportSlider) triggerClientEvent (source, "mess5", source) setCameraMatrix(source, 1493.1473388672, -1675.30078125, 42.586067199707, 1590.6865234375, -1672.4597167969, 20.722238540649) setTimer(grovestSlider, 9500, 1, source) setTimer(fadeCamera, 8000, 1, source, false, 1.5) setTimer(fadeCamera, 9500, 1, source, true, 1.5) end Client: function message1Dx () dxDrawText("***********", 195, 489, 1090, 531, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, true, true, false) dxDrawText("***********", 195, 487, 1090, 529, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, true, true, false) dxDrawText("***********", 193, 489, 1088, 531, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, true, true, false) dxDrawText("***********", 193, 487, 1088, 529, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, true, true, false) dxDrawText("***********", 194, 488, 1089, 530, tocolor(0, 0, 255, 255), 1.00, "pricedown", "left", "top", false, false, true, true, false) end function message2Dx () dxDrawText("***********", 195, 489, 1090, 531, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, true, true, false) dxDrawText("***********", 195, 487, 1090, 529, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, true, true, false) dxDrawText("***********", 193, 489, 1088, 531, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, true, true, false) dxDrawText("***********", 193, 487, 1088, 529, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, true, true, false) dxDrawText("***********", 194, 488, 1089, 530, tocolor(255, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, true, true, false) end function message3Dx () dxDrawText("***********", 195, 489, 1090, 531, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, true, true, false) dxDrawText("***********", 195, 487, 1090, 529, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, true, true, false) dxDrawText("***********", 193, 489, 1088, 531, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, true, true, false) dxDrawText("***********", 193, 487, 1088, 529, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, true, true, false) dxDrawText("***********", 194, 488, 1089, 530, tocolor(0, 0, 255, 255), 1.00, "pricedown", "left", "top", false, false, true, true, false) end function message4Dx () dxDrawText("***********", 195, 489, 1090, 531, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, true, true, false) dxDrawText("***********", 195, 487, 1090, 529, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, true, true, false) dxDrawText("***********", 193, 489, 1088, 531, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, true, true, false) dxDrawText("***********", 193, 487, 1088, 529, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, true, true, false) dxDrawText("***********", 194, 488, 1089, 530, tocolor(0, 255, 0, 255), 1.00, "pricedown", "left", "top", false, false, true, true, false) end function message5Dx () dxDrawText("***********", 195, 489, 1090, 531, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, true, true, false) dxDrawText("***********", 195, 487, 1090, 529, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, true, true, false) dxDrawText("***********", 193, 489, 1088, 531, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, true, true, false) dxDrawText("***********", 193, 487, 1088, 529, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, true, true, false) dxDrawText("***********", 194, 488, 1089, 530, tocolor(0, 0, 255, 255), 1.00, "pricedown", "left", "top", false, false, true, true, false) end function message1 () addEventHandler("onClientRender",getRootElement(),message1Dx) if isElement (message5) then removeEventHandler("onClientRender",getRootElement(),message5Dx) end end addEvent ("mess1", true) addEventHandler ("mess1", root, message1) function message2 () addEventHandler("onClientRender",getRootElement(),message2Dx) removeEventHandler("onClientRender",getRootElement(),message1Dx) end addEvent ("mess2", true) addEventHandler ("mess2", root, message2) function message3 () addEventHandler("onClientRender",getRootElement(),message3Dx) removeEventHandler("onClientRender",getRootElement(),message2Dx) end addEvent ("mess3", true) addEventHandler ("mess3", root, message3) function message4 () addEventHandler("onClientRender",getRootElement(),message4Dx) removeEventHandler("onClientRender",getRootElement(),message3Dx) end addEvent ("mess4", true) addEventHandler ("mess4", root, message4) function message5 () addEventHandler("onClientRender",getRootElement(),message5Dx) removeEventHandler("onClientRender",getRootElement(),message4Dx) end addEvent ("mess5", true) addEventHandler ("mess5", root, message5)
-
Ok, i will try to make the script in other .zip file, if you say it works, i think you true, thanks Edit: Yes you are true, it works in other .zip file, i think other function corrupt the spawner, because i use 1 cleint side and 1 server side file for all spawners, thanks
-
Hi, i alredy have all the RP vehicle spawner working on my Rpg server, i have Police, Medic, Crim, Free, Etc, Vehicles spawners and working 100%, But i don't know why this mechanic spawner doesn't want to work, checked debugscript, 0 errors and 0 problems, i have checked the script thousends of times, but i can't locate the problem, onClientGUIClick works nice, but when i click the button "Spawn", the vehicle doesn't spawn and the Gui doesn't quit, why??? ----Client Side------ Window2 = guiCreateWindow ( 0.2, 0.2, 0.25, 0.5, "Mechanic vehicles", true ) buttonmev = guiCreateButton ( 0.5, 0.8, 0.45, 0.15, "Close", true, Window2 ) button2 = guiCreateButton ( 0.01, 0.8, 0.45, 0.15, "Spawn", true, Window2 ) label2 = guiCreateLabel ( 0.1, 0.1, 0.9, 0.1, "Take your vehicle", true, Window2 ) showCursor(false) guiSetVisible( Window2, false ) guiWindowSetSizable( Window2, false ) vehicles2 = { {"Bobcat", 422}, {"Picador", 600}, {"TowTruck", 525}, } grid = guiCreateGridList(0.01, 0.2, 0.99, 0.5, true, Window2) guiGridListAddColumn(grid, "Vehicles", 0.85) for i,veh in ipairs(vehicles2) do row = guiGridListAddRow(grid) -- guiGridListSetItemText(grid, row, 1, tostring(veh[1]), false, false) guiGridListSetItemData(grid, row, 1, tostring(veh[2])) end function useMec() local row, col = guiGridListGetSelectedItem(grid) if (row and col and row ~= -1 and col ~= -1) then local model = tonumber(guiGridListGetItemData(grid, row, 1)) if model ~= "" then triggerServerEvent("CreVehiceMecv", localPlayer, model) guiSetVisible(Window2,false) showCursor(false) end end end addEventHandler("onClientGUIClick", button2, useMec, false) function close() if (source == buttonmev) then guiSetVisible(Window2,false) showCursor(false) end end addEventHandler("onClientGUIClick", buttonmev, close) function showGUImev() guiSetVisible(Window2,true) showCursor(true) end addEvent("showGUImecv",true) addEventHandler("showGUImecv", getRootElement(), showGUImev) function errorVehMecDx () dxDrawText("Restricted Vehicle", 357, 926, 974, 967, tocolor(0, 0, 0, 255), 1.00, "pricedown", "center", "center", false, false, true, false, false) dxDrawText("Restricted Vehicle", 357, 924, 974, 965, tocolor(0, 0, 0, 255), 1.00, "pricedown", "center", "center", false, false, true, false, false) dxDrawText("Restricted Vehicle", 355, 926, 972, 967, tocolor(0, 0, 0, 255), 1.00, "pricedown", "center", "center", false, false, true, false, false) dxDrawText("Restricted Vehicle", 355, 924, 972, 965, tocolor(0, 0, 0, 255), 1.00, "pricedown", "center", "center", false, false, true, false, false) dxDrawText("Restricted Vehicle", 356, 925, 973, 966, tocolor(255, 0, 0, 255), 1.00, "pricedown", "center", "center", false, false, true, false, false) end function errorVehMec () addEventHandler("onClientRender",getRootElement(),errorVehMecDx) playSound ("fail.mp3") setTimer(function() removeEventHandler("onClientRender",getRootElement(),errorVehMecDx) end,7000,1) end addEvent ("failvehmec", true) addEventHandler ("failvehmec", root, errorVehMec) -------Server Side------- markermev = createMarker( 1036.52332, -1027.04517, 31.10156, "cylinder", 2, 255, 255, 0, 255 ) markermev1 = createMarker( 2118.23779, -1139.20654, 24.05363, "cylinder", 2, 255, 255, 0, 255 ) markermev2 = createMarker( 2099.13696, 2170.94922, 9.82031, "cylinder", 2, 255, 255, 0, 255 ) markermev3 = createMarker( -1988.39319, 249.08885, 34.17188, "cylinder", 2, 255, 255, 0, 255 ) markermev4 = createMarker( -1986.62317, 267.63120, 34.17936, "cylinder", 2, 255, 255, 0, 255 ) local vehicles2 = {} function spawnVehMe(id) local x, y, z = getElementPosition(source) if isElement(vehicles2[source]) then destroyElement(vehicles2[source]) end vehicles2[source] = createVehicle(id, x + 2, y, z) warpPedIntoVehicle(source, vehicles2[source]) end addEvent("CreVehiceMecv",true) addEventHandler("CreVehiceMecv", root, spawnVehMe) addEventHandler("onPlayerQuit", root, function() if isElement(vehicles2[source]) then destroyElement(vehicles2[source]) vehicles2[source] = nil end end) function showGUIMechv(hitPlayer) if hitPlayer and getElementType(hitPlayer) == "player" and not isPedInVehicle (hitPlayer) then if ( getPlayerTeam ( hitPlayer ) == getTeamFromName ( "Mechanic" ) ) then triggerClientEvent (hitPlayer,"showGUImecv",hitPlayer) else outputChatBox ("You can't use this marker",hitPlayer, 255, 0, 0) triggerClientEvent (hitPlayer, "failvehmec", hitPlayer) end end end addEventHandler("onMarkerHit",markermev,showGUIMechv) addEventHandler("onMarkerHit",markermev1,showGUIMechv) addEventHandler("onMarkerHit",markermev2,showGUIMechv) addEventHandler("onMarkerHit",markermev3,showGUIMechv) addEventHandler("onMarkerHit",markermev4,showGUIMechv)
-
Sane Hosting - DDoS Protected - Cheap and Reliable
Leonard.DC replied to SaneHosting's topic in Hosting solutions
no it isnt in my computer, im not a noob guy, im just experienced, and i know this people doesn't want to help me -
Sane Hosting - DDoS Protected - Cheap and Reliable
Leonard.DC replied to SaneHosting's topic in Hosting solutions
Did you try to open a ticket? I have opened 3 tickets, and then i have changed to sawhost.net, its really better -
Sane Hosting - DDoS Protected - Cheap and Reliable
Leonard.DC replied to SaneHosting's topic in Hosting solutions
Sry but i will not recommend this host, Reason: Bad support, Doesn't fix problems like ports problems, That problem i have for last 3 days, and im very desgusted with the service, Why the UDP ports are closed?, i think you trolling people to scam them -
Tapl thank you for helping me again, you a nice man, i have solved 3 problems with your help, i will try use getElementDimension, but a little question, do i have to change it in the play time script, or in the afk script?
-
Hi, i have a play time in the scoreboard, also have a afk script, when a player wait 2 min he being afk and he will set to the dimension 3, but i only want to know how i can stop or kill the play time in the scoreboard when the player is afk, and when he return, resume the timer, should i use call function? Pd: The afk and the Play Time are 2 different scripts
-
It doesn't work i dont know why, im changed removePedFromVehicle to cancelEvent(), and used and fixed the code NearGreen say me, but it doesn't output anything in the debugscript, and the event doesn't cancel when i am in another team that not be medic or cop copVehicles = { [523] = true, [598] = true, [596] = true, [597] = true, [599] = true } copTeam = "Police" function enterVehicle1 ( thePlayer, seat, jacked ) if ( getElementType ( thePlayer ) == "player" ) then local team = getPlayerTeam ( thePlayer ) local teamName = ( team and getTeamName ( team ) or "" ) if ( teamName == copTeam ) and ( copVehicles[getElementModel ( source )] ) then if ( copVehicles[getElementModel ( source )] ) and ( not getTeamFromName ( "Police" ) ) then cancelEvent() outputChatBox("You cant use this vehicle", thePlayer, 255, 0, 0) end end end end addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle1 ) medicVehicles = { [416] = true, } medicTeam = "Medic" function enterVehicle2 ( thePlayer, seat, jacked ) if ( getElementType ( thePlayer ) == "player" ) then local team = getPlayerTeam ( thePlayer ) local teamName = ( team and getTeamName ( team ) or "" ) if ( teamName == medicTeam ) and ( medicVehicles[getElementModel ( source )] ) then if ( medicVehicles[getElementModel ( source )] ) and ( not getTeamFromName ( "Medic" ) ) then cancelEvent() outputChatBox("You cant use this vehicle", thePlayer, 255, 0, 0) end end end end addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle2 ) Recent code, i use Server side
-
Im trying to restrict some vehicles to teams, but it doesn't work, and doesn't output anything in the debugscript, can someone tell me why? copVehicles = { [523] = true, [598] = true, [596] = true, [597] = true, [599] = true } function enterVehicle1 ( thePlayer, seat, jacked ) if getElementType ( thePlayer ) == "player" then if ( copVehicles[getElementModel ( source )] ) and ( not getTeamFromName ( "team i use" ) ) then removePedFromVehicle( thePlayer )-- force the player out of the vehicle outputChatBox("********", thePlayer, 255, 0, 0) end end end addEventHandler ( "onVehicleEnter", getRootElement(), enterVehicle1 ) medicVehicles = { [416] = true, } function enterVehicle2 ( thePlayer, seat, jacked ) if getElementType ( thePlayer ) == "player" then if ( medicVehicles[getElementModel ( source )] ) and ( not getTeamFromName ( "team i use" ) ) removePedFromVehicle( thePlayer ) outputChatBox("*******", thePlayer, 255, 0, 0) end end end addEventHandler ( "onVehicleEnter", getRootElement(), enterVehicle2 ) It is all the code
-
thanks for the info, im going to dream, i will se it later
-
Hi, how i can make when a driver is in a taxi, and is in the taxi team, and there are a passenger in the taxi too, take money from the passenger every some seconds, and give the money to the driver of the taxi, something like a timer job, but without bots, for example a passenger have 5K and get on a taxi, every 3-4 seconds he lose 20$ and the driver earn 20$ each 3-4 seconds, what functions and handlers i should use?