-
Posts
226 -
Joined
-
Last visited
Everything posted by Maurize
-
Lol. A friend of mine ( jessunit ) showed me and hey, nothing necessary to download. Simply script a function and tada use SQLSelect or smthng. Works fine! Anyway another explanation would be nice
-
I want SQL the build-in feature not MYSQL EDIT: The explanathion to SQL on wiki isn´t understandable for me at all... Maybe you can explain better!
-
Hey everybody, can someone explain me how to use SQL to save data & get data? And is it possible to open this database?
-
can be closed. got helped!
-
if i want for example nice bloom or nice water .. i should use this right? engineApplyShaderToWorldTexture
-
Today, in MTA 1.1 Beta i saw a very nice enb effect. My question? How the fuck is this possible :DD
-
plane = createVehicle( ... ) tmarker = createMarker( ... ) attachElements( marker, plane, ... ) function markerHit( hitPlayer ) setElementInterior( hitPlayer, 9, 315.48, 984.13, 1959.11 ) end addEventHandler( "onMarkerHit", tmarker, markerHit )
-
for what freecam? :oo
-
onClientMouseMove is what i searched for Cause i used getCursorPosition but with that i can´t move
-
Hey I´m currently working on a First Player Script but with Mouse Moving. Slothmans is good but not compareable with mouse. So I need some hints how to begin.. function Perspective() x, y, z = getElementPosition( getLocalPlayer() ) setCameraMatrix( x, y, z, ?, ?, ? ) end
-
U have to bind a key for example "B". And add function with: removePedWeapon createPickup -- to let it look like a dropped weapon getGroundPosition or something to get the distance ( u have to know where the ground is to create the object correctly ) OR u use this resource from community
-
Fine. Thanks a lot
-
Hmm doesnt work even with 100.. maybe something else? EDIT: Want to spawn zombies on 00.00 ..
-
No error or something. Simply doesnt do what i want... Try it for yourself as proof
-
function Welt1() local hour, mins = getTime() if hour == "23" and mins == "59" then outputChatBox("Mitternacht", getRootElement(), 255, 200, 0, false) end end setTimer( Welt1, 1000, 0 ) what´s wrong?
-
Go to it´s folder, mark it, and hit delete Done. It´s gone!
-
Of course it works So last thing here. Is it possible to create a function to let the time in the scoreboard be shown like: 12:00 and not only one number like: 12. And how can I maximaze the minute duration so it counts 1 to the hours? I think you know what I mean Anyway much thanks!
-
works. but shows me only "false" instead of the time. ^^
-
Maybe you can help me a second time. I´ve created a Timer which sets the players accountdata every minute +1 . But to show it in the playerlist I need to setElementData(). I do all this, but my Playtime isn´t shown. Here my code: SERVER: function SpielerZeit() gTime = tonumber( getAccountData( getPlayerAccount( source ), "time" ) ) if ( gTime ) then gTimer = setTimer( setAccountData, 60000, 0, getPlayerAccount( source ), "time", gTime + 1 ) else nTime = 0 gTimer = setTimer( setAccountData, 60000, 0, getPlayerAccount( source ), "time", nTime + 1 ) end addEventHandler( "onPlayerQuit", Spieler, function() killTimer( gTimer ) end ) end addEventHandler( "onPlayerLogin", Spieler, SpielerZeit ) function SpielerUpdate() local update = tonumber( getAccountData( getPlayerAccount( source ), "time" ) ) setElementData( source, "time_v", update ) end addEvent( "update", true ) addEventHandler( "update", Spieler, SpielerUpdate ) CLIENT: local sx, sy = guiGetScreenSize() local pList = guiCreateGridList( 300, 300, sx - 600, sy - 600, false ) local pcol1 = guiGridListAddColumn( pList, "Name", 0.3 ) local pcol2 = guiGridListAddColumn( pList, "Gang", 0.3 ) local pcol3 = guiGridListAddColumn( pList, "Spielzeit", 0.175 ) local pcol4 = guiGridListAddColumn( pList, "Ping", 0.175 ) guiWindowSetMovable( pList, false ) guiWindowSetSizable( pList, false ) guiSetVisible( pList, false ) function PlayerList() if ( guiGetVisible( pList ) == false ) then guiGridListClear(pList) guiSetVisible( pList, true ) for id, player in ipairs( getElementsByType( "player" ) ) do triggerServerEvent( "update", player ) prow1 = guiGridListAddRow( pList ) guiGridListSetItemText( pList, prow1, pcol1, getPlayerName( player ), false, false ) guiGridListSetItemText( pList, prow1, pcol2, getTeamName( getPlayerTeam( player ) ), false, false ) guiGridListSetItemText( pList, prow1, pcol3, tonumber( getElementData( player, "time" ) ), false, false ) guiGridListSetItemText( pList, prow1, pcol4, getPlayerPing( player ), false, false ) end else guiSetVisible( pList, false ) end end bindKey( "tab", "both", PlayerList )
-
Works fine! Thanks alot!
-
addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit ) getRootElement() must be changed to your marker name! addEventHandler ( "onClientMarkerHit", theMarker, MarkerHit ) Otherwise it will act on every marker hit. EDIT: If u want something interact on ResourceStart, you can even let it be there without any function. So it will get created like a marker or something in your function. justinBieber = createPed ( 240, -3145, 6920, 55.5 ) setPedRotation( justinBiber, 270 ) theMarker = createMarker( -3144, 6920 , 56 , "cylinder", 7, 0, 0, 255, 0 ) source = getLocalPlayer() vehicle = getPlayerOccupiedVehicle(getLocalPlayer()) outputChatBox ("#AAEE62This map is fully green made! No robots!", 27, 89, 224, true) outputChatBox ("#FF0000Are you Ready to kill Justin Bieber?", 27, 224, 50, true) outputChatBox ("#FF0000I am ready, because he rocks!", 27, 224, 50, true) outputChatBox ("#FFFFFFPress #AAEE62'M' #FFFFFFto turn music On/Off", 255, 0, 0, true) function MarkerHit( hitPlayer, matchingDimension ) setElementPosition(vehicle, -3339.3500976563, 6927.7890625, 55.877330780029 ) setElementVelocity(vehicle, 0, 0, 0) end addEventHandler ( "onClientMarkerHit", theMarker, MarkerHit )
-
Try to use .lua tags to display the code better and allow us to read it easier.
-
Maybe you can need this: function Admin_Message() if ( getAccountData( getPlayerAccount( source ), "admin" ) == true ) then outputChatBox( getPlayerName( source ) .. "is now on duty.", getRootElement(), 155, 155, 0 ) end end addEventHandler( "onPlayerLogin", getRootElement(), Admin_Message )
-
Excellent. This is it. Thanks you very very very very much, mate I tried this for hours but you know how to do!!