xXMADEXx
Members-
Posts
2,718 -
Joined
-
Last visited
Everything posted by xXMADEXx
-
Any errors in Debug Script?
-
k001, just updated them thanks.
-
This would require a custom script..
-
Acutely, i had a server hosted by Vortex Servers, and they're services is fantastic.
-
and '' and '!'
-
Oh, sorry, i guess i should have read the whole message... But here would be an example: --bool dxDrawImageSection ( float posX, float posY, float width, float height, float u, float v, float usize, float vsize, mixed image ) dxDrawImageSection ( 0, 0, 500, 100, 50, 50, 50, 50, "picture.png" )--I think this would wok lolz
-
Umm i've never used this function but i'd think it would be something like: dxDrawImageSection
-
dxDrawText requires "onClientRender" The script would be: local isPlayerViewingImage = false; local sx, sy = guiGetScreenSize ( ) function dxDrawTheImage ( ) if ( isPlayerViewingImage ) then dxDrawImage ( 0, 0, sx, sy, "ImagePath.png" ) end end addEventHandler ( "onClientRender", root, dxDrawTheImage ) bindKey ( "F9", function ( ) isPlayerViewingImage = not isPlayerViewingImage end )
-
To script it youll need this: car = createVehicle ( id, x, y, z ) addEventHandler ( "onVehicleStartEnter", car, function ( p ) if ( getTeamName ( getPlayerTeam ( p ) ) ~= "The Team Name" ) then cancelEvent ( ) end end )
-
Well you need the image (just download it) then you'll need: guiCreateStaticImage -- or dxDrawImage
-
This would require alot of scripting (to add the argument) it could be done, but it would just be faster to make a scripted car.
-
Thanks you ! Is perfect for my server ! Sorry I debuted in script I'll add you to the credit of my server! No problem.
-
Both are working. x) lolz, then why not post the correct one?
-
You can try this, but i havn't tested it. local isCarModEnabled = false function newcar ( ) if not isCarModEnabled then local txd = engineLoadTXD("name.txd", id ) engineImportTXD(dff, id) local dff = engineLoadDFF("name.dff", id ) engineReplaceModel(dff, id) isCarModEnabled = true else engineRestoreModel ( id ) isCarModEnabled = false end end addCommandHandler ( "newcar", newcar )
-
#help# stream john f kennedy airport in all my aircraft
xXMADEXx replied to dazzlepoint's topic in Scripting
What do you mean? Like the sound play around the airplane? -
Em are you just trying to play the sound for the client or entire server? If just the client use: onClientResourceStart onClientResourceStop otherwise use triggerServerEvent, triggerClientEvent, addEvent, onPlayerJoin, onPlayerQuit
-
function equi() setPedStat(source, 75, 500) end addEventHandler("onPlayerJoin", root, equi) addEventHandler ( "onPlayerWasted", root, function ( _, source ) if ( source ) then local current = getPedStat ( source, 75 ) setPedStat ( source, 75, current + 100 ) else return end end )
-
Hi guys, so, i've never used "getTickCount()" before, and I hear its a lot better then using setTimer. I just have one problem.. The DX text will only show for 1 frame every second.. Im not really sure how to fix it either... local sx, sy = guiGetScreenSize ( ) local LastTick = 1000 addEventHandler ( "onClientRender", root, function ( ) local lc = getTickCount ( ) if ( lc-LastTick >= 1000 ) then dxDrawText ( lc, 0, 0, sx, sy, tocolor ( 202, 202, 202, 255 ), 3, "default-bold", "center", "center" ) LastTick = lc else return end end )
-
You accidentally put the ID, not variable here. if getElementModel(car) == theCar then
-
This isn't a request page. You'll need to try to find a free scripter, pay someone, or do it yourself.
-
You cannot make slots like that (that I know of), but you can put the server slots to something (example: 500) and when the players in the server reach 450 then you have to enter a password or something join the game
-
Erm, why are you trying to setElementData to a button?
-
Its very rare for someone to make a resource for free. You probably have to pay someone.
-
(I would like it if you made your own, and don't steal mine) setTimer setElementData getElementData getElementsByType
-
What do you mean car sound? like the horn?
