Smart.
Members-
Posts
340 -
Joined
-
Last visited
Everything posted by Smart.
-
CMG Hosting [Cheapest seen to the naked eye.]
Smart. replied to toptional's topic in Hosting solutions
I guess these specs are false because I remember when you spammed asking for donations to afford a host for "CMG" and now you can afford two dedi's? This was however very long ago and I can be wrong. -
Who the fuck would like to steal this resource? It's not like there's 10 resources making a flying cow killing you
-
setTimer getTimerDetails guiSetText
-
Yeah becuase googling "50P Skype name" will give you any good result
-
Did you use guiComboBoxGetSelected ?
-
Doesn't matter, they aren't linked, the message will be outputed to everyone, works fine. Btw it was made in like 5 mins some rough work. No, the message will not be outpputed to everyone. It will only output to the command executor.
-
You're right, example: Ban/Kick a player with a command, already exists within the FR GUI script Music/Sound script; Client- addEventHandler( 'onClientResourceStart', resourceRoot, function( ) local sound = playSound3D( 'http://www.181.fm/winamp.pls?station=181-power&style=mp3&description=Power%20181%20(Top%2040)&file=181-power.pls', 485.87612915039, -11.931990623474, 1000.679687 ) setSoundMaxDistance(sound, 600 ) setElementInterior ( sound, 17 ) end ) function event () outputChatBox ( "An event has been created! Use /eventwarp to be warped to the event!", root, 0, 255, 0 ) end addCommandHandler ( "command", event ) Server- function warp (player) setElementPosition ( player, 485.87612915039, -11.931990623474, 1000.679687 ) setElementInterior ( player, 17 ) end addCommandHandler ( "eventwarp", warp ) "An event has been created! Use /eventwarp to be warped to the event!" will only output for the local player. (there is no plr argument clientsided)
-
Why send to every player?
-
You can use 'root' as argument at triggerServerEvent and then use 'client' as player argument server sided
-
https://wiki.multitheftauto.com/wiki/OnChatMessage
-
Use this code instead of using setElementData and a timer, not tested but should work. local sellMarker = createMarker(2694.72852, -2226.08911, 13.55008, "cylinder", 1.5, 255, 0, 0) local tick = {} function sellVehicle(player) if (getElementType(player) == "player") then if (not getPedOccupiedVehicle(player)) then outputChatBox("You need to be in a Vehicle to sell it.", player, 255, 0, 0) return end if (tick[player]) then local theTick = getTickCount() if (theTick - tick[player] < 1800000) then outputChatBox("Wait 30 minutes.", player, 255, 0, 0) return end end tick[player] = getTickCount() local vehicle = getPedOccupiedVehicle(player) local reward = math.random(2000, 3000) givePlayerMoney(player, reward) outputChatBox("You have sold the "..getVehicleName(vehicle).. " for "..reward.."!", player, 0, 255, 0) end end addEventHandler("onMarkerHit", sellMarker, sellVehicle)
-
why are you using elementdata with a timer? just use getTickCount
-
Charging $10 for a script that would take not more than 5 minutes to do? (bounty)
-
Just change thePlayer to source
-
I made a resource that spawns job vehicles aswell https://forum.multitheftauto.com/viewtop ... 2021fdefe5
-
I've been trying to fix an error message on my Debain 6.0 x86 server for quite some while now but I can not seem to solve it.. This is the error I'm getting is: http://puu.sh/1Hmry and according to the wiki this should fix it but I'm still getting the same error
-
Why do you use idiotic variable names and whatsup with the ";"?
-
I've already talked with this guy and he bought two resources from me, legit buyer.
-
As suspected so do you use a custom login thus not triggering MTA's onPlayerLogin event. I've sent the new script in a PM and it should work.
-
There is but I would not recommend using it. You could add a timer to set the ped's health to 100 every second but running a timer that many times would probably fuck up the server
-
Remove it using removeEventHandler or you can use a variable, like when you trigger the login you set the variable to true, and then when rendering the text you can check if the variable is true, if it is then return end. However, I recommend using removeEventHandler (see below) client function drawLoginText() dxDrawText("Welcome to ...", 131, 29, 846, 76, tocolor(255, 0, 0, 255), 1, "bankgothic", "left", "top", false, false, true, false, false) dxDrawText("Please Login Below", 490, 349, 724, 366, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) end addEventHandler("onClientRender", root, drawLoginText) function removeDXOnLogin() removeEventHandler("onClientRender", root, drawLoginText) end addEvent("removeDXOnLogin", true) addEventHandler("removeDXOnLogin", root, removeDXOnLogin) server function removeOnLogin() triggerClientEvent(source, "removeDXOnLogin", source) -- this line could just be copied into your event which you trigger from client (assuming you actually login the player) end addEventHandler("onPlayerLogin", root, removeOnLogin)