-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
Try this: g_RaceStartCountdown = Countdown.create(6, launchRace) g_RaceStartCountdown:useImages('img/countdown_%d.png', 474, 204) g_RaceStartCountdown:enableFade(true) g_RaceStartCountdown:addClientHook(3, "playSound","audio/3.mp3") g_RaceStartCountdown:addClientHook(2, "playSound","audio/2.mp3") g_RaceStartCountdown:addClientHook(1, "playSound","audio/1.mp3") g_RaceStartCountdown:addClientHook(0, "playSound","audio/0.mp3")
-
It's pretty easy actually, I've done it for one of my clients, you should add a new value called 'acl' then on s_main.lua you check if the spawn is public or not, if not then you check the ACL name.
-
I'm afraid that we don't accept requests here, even when you may put us in the meta.xml (that maybe nobody will ever read). You could do it by yourself though, if you take some of your time reading the MTA wiki. For this you'll need: dxDrawText onClientRender ([url=https://wiki.multitheftauto.com/wiki/OnClientRender]https://wiki.multitheftauto.com/wiki/OnClientRender[/url]) setTimer
-
Excuse me, what? was this even your script? becuase it doesn't look like it was. ffsfont seems to be a font file, but you didn't had it in the script.
-
Of course that it's possible, but you'll need to edit the script to do this. I suggest you to learn about ACL functions in the wiki: https://wiki.multitheftauto.com/wiki/Ser ... _functions
-
Use imgtools to replace vehicles, skins, weapons. Open gta3.img to replace skins, vehicles and weapons. WARNING: YOU CAN'T CHANGE THE HANDLING AND SO ON.
-
bandi, if I'm right, what he's trying to do is to save the vehicle engine state, not to toggle it off (btw, you put false not 'off' to stop the engine).
-
Dude, I gave you a start, now you'll have to do the rest.
-
function turnEngine(player) local car = getPedOccupiedVehicle(player) if(car and getVehicleController(car) == player) then setVehicleEngineState(car,(not getVehicleEngineState(car))) if(getVehicleEngineState(car)) then outputChatBox("Engine: Your engine has been turned on.", player, 0, 255, 0) else outputChatBox("Engine: Your engine has been turned off.", player, 255, 0, 0) end end end addCommandHandler ("engine",turnEngine)
-
Do this: Set a new data name in the .map file called "acl" and then in the script check for that ACL group.
-
That's a really cool idea, good job karlis .
-
I defined it now, as it wasn't in his script I forgot to.
-
@helpme: If you expect to get help with that attitude, then you're COMPLETELY wrong, nobody will help you if you insult them, because your English totally s*** and you can't explain what do you REALLY want.
-
He can't bind key to what? you can't unbind/bind something without having the function.
-
-- client side: local mes_ID = 0 local enabled = false local sx, sy = guiGetScreenSize() local getTickStart = getTickCount() function someoneReachedHunter(ID) mes_ID = tonumber(ID) if enabled then removeEventHandler("onClientRender",root,drawHunterReached) enabled = false else addEventHandler("onClientRender",root,drawHunterReached) enabled = true end end addEvent("onHunterEvent",true) addEventHandler("onHunterEvent",getRootElement(),someoneReachedHunter) function drawHunterReached() local getTickNow = getTickCount () - getTickStart if getTickNow <= 1000 then alfa = getTickNow/1000 elseif getTickNow >= 4000 then alfa = (5000-getTickNow)/1000 else alfa = 1 end alfa = alfa * alfa * alfa if mes_ID == 1 then dxDrawText("Hunter Reached!",-1,sy/3,sx-1,sy,tocolor(0,0,0,alfa*200),(2.5*sx/1920)*alfa*0.2,ffsfont,"center","center",true) dxDrawText("Hunter Reached!",0,sy/3,sx,sy,tocolor(255,0,0,alfa*255),(2.5*sx/1920)*alfa*0.2,ffsfont,"center","center",true) elseif mes_ID == 2 then dxDrawText("Hunters Fight!",-1,sy/3,sx-1,sy,tocolor(0,0,0,alfa*200),(2.5*sx/1920)*alfa*0.2,ffsfont,"center","center",true) dxDrawText("Hunters Fight!",0,sy/3,sx,sy,tocolor(255,0,0,alfa*255),(2.5*sx/1920)*alfa*0.2,ffsfont,"center","center",true) end end -- server side: function vehicleDetector(pickupID, pickupType, vehicleModel) if (pickupType == "vehiclechange") then if (vehicleModel == 425) then triggerClientEvent(source,"onHunterEvent",source,1) end end end addEventHandler("onPlayerPickUpRacePickup",getRootElement(),vehicleDetector)
-
What you are saying makes no sense, and also it looks like because you're tired, you won't do it. Please explain yourself better.
-
Why you need to trigger from server side? using onClientPlayerJoin, onClientPlayerQuit should work.
-
local myTable = {} addCommandHandler("insert", function (player) if not myTable[player] then myTable[player] = {} end table.insert(myTable[player], createObject(980, 0, 0, 0)) end) addCommandHandler("get", function (player) for index, ob in pairs(myTable[player]) do local x, y, z = getElementPosition(ob) outputChatBox(tostring(x) ..", ".. tostring(y) ..", ".. tostring(z)) end end) That should work.
-
And that's what I was talking about, I search for SA-MP server of Next Generation Gaming but seems like Game Monitor got a bug and show wrong server information (i.e wrong game).
-
You're welcome.
-
How's that possible? Next Generation Gaming can only support 244 players (game monitor info) and right now had 59 players.
-
Is the script encoded with UTF-8? if so, then you'll not be able to compile it. Change the encoding to UTF-8 without BOM.
-
You're welcome .
-
addEventHandler( "onClientPlayerJoin", root, function() textJoin = getPlayerName( source ).." entrou no Servidor !" setTimer ( function () textJoin = "" end, 9000, 1 ) end )
