Smart.
-
Posts
340 -
Joined
-
Last visited
Posts posted by Smart.
-
-
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.
Intrested in donating to CMG to buy a proper host? https://www.paypal.com/cgi-bin/webscr?c ... 8HTTS4YVAC -
setElementPosition
-
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
-
-
Between us speaking, I recommend to look for the answer to your question in google.com
Yeah becuase googling "50P Skype name" will give you any good result
-
it works with words aswell, after changing to numbers same problem
#Edit: The first one on top I mean like: Dance/Dj will play always whatever i chose in that combo box, BUT if i change to Classic to be on top of Dance/Dj the classic will always play
Did you use guiComboBoxGetSelected ?
-
"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)
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.
-
These scripts are good for the beginner, but not for money. I have seen most of these scripts as an example in the WIKI, , suppose it's up to the others!
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)
-
function showMenu (thePlayer) triggerClientEvent ( thePlayer, "ShowAmmu", getRootElement() ) end addEventHandler ( "onMarkerHit", ammuSell, showMenu )
Why send to every player?
-
You can use 'root' as argument at triggerServerEvent and then use 'client' as player argument server sided
-
-
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)
-
sellMarker = createMarker ( 2694.72852, -2226.08911, 13.55008, "cylinder", 1.5, 255, 0, 0 ) setElementData( root, 'sellCar', true ) function sellVehicle( hit ) if getElementType( hit ) == 'vehicle' then local player = getVehicleOccupant( hit ) if player and getElementData( player, 'sellCar' ) then local reward = math.random( 2000, 3000 ) givePlayerMoney( player, reward ) outputChatBox ( "You have sold the " .. getVehicleName( hit ) .. " for " .. reward .. " !", player, 0, 255, 0 ) destroyElement( hit ) setElementData( player, 'sellCar', false ) setTimer( setElementData, 1800000, 1, player, 'sellCar', true ) else outputChatBox( 'Should you wait a half hour!', player, 255, 0, 0 ) end 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
-
but did you also install MTA-MySQL?
http://code.google.com/p/multitheftauto ... o&can=2&q=
(put it in mods/deathmatch/modules/)
just troubleshooting here
Yeah
-
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
To fix MODULE: Unable to find modules/mta_mysql.so (libmysqlclient.so.15: cannot open shared object file: No such file or directory)! you have to install libmysqlclient15. You can get it here: http://automation.binarysage.net/?p=1311but I'm still getting the same error
-
local g_pCensoredWords = { "bitch", "gay"; }; addEventHandler( "onPlayerChat", root, function( szMsg ) for index, word in ipairs( g_pCensoredWords ) do if ( szMsg:find( word, 0 ) ) then szMsg = szMsg:gsub( word, "****" ); szMsg = string.format( "%s: %s", getPlayerName( source ), szMsg ); cancelEvent(); outputChatBox( szMsg, root, 255, 255, 255, true ); end end end )
Not tested but should work.
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.
-
Theres nothing server side that will make an NPC non kill-able? What if i remove collision ?
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)
asdasd
in Resources
Posted · Edited by Guest
sdsad