drk
Members-
Posts
1,607 -
Joined
-
Last visited
Everything posted by drk
-
Easy. Learn: http://www.lua.org/ To create it you can use: - For saving top times -> MySQL or SQL - For GUI -> Drawing functions, Images or the shitty GUI functions
-
ReFleX add your script to the acl.xml ( group Admin ). Admin Panel -> Resources Tab -> Manage ACL -> Double click in Admin Group -> Add object -> Type "resource.yourJoinquitResourceName" -> Ok -> Restart resource or maybe not needed Note: Change "yourJoinquitResourceName" to your joinquit resource name, understand?
-
You need Kenix. You need admin rights to get a player data from admin panel.
-
'oldteam' data is wrong. setElementData ( localPlayer, 'oldteam', getTeamName ( getPlayerTeam ( localPlayer ) ), true )
-
Server-side: addEventHandler ( 'onPlayerWasted', root, function ( ammo, killer, weapon ) if ( killer and killer ~= source ) then if ( #getAlivePlayers() == 1 ) then triggerClientEvent ( 'play', source ) end end end ) Client-side: addEvent ( 'play', true ) addEventHandler ( 'play', root, function ( ) playSound ( 'sounds/win.mp3', false ) end ) Not tested.
-
@@GanJaRuleZ As far as I know, outputChatBox converts to string automatically.
-
No need to post again Jector .-. Kenix posted already.
-
Then, you should create your own. If the code is compiled is because the scripter have reasons to or don't want to anyone edit it.
-
We don't help people who steals scripts and we will not decompile the script for you.
-
Oh thanks! I read about setmetatable and I put it to work Tnx Kenix
-
See my last reply again.
-
You get any error? And are you HeadAdmin? Test this: addCommandHandler ( 'matrix', function ( _PED, _CMD ) if ( exports.global:isPlayerHeadAdmin ( _PED ) ) then outputChatBox ( 'passed if. Is HeadAdmin' ) local a, b, c, d, e, f, g, h = getCameraMatrix ( _PED ) outputChatBox ( a .. ', ' .. b .. ', ' .. c .. ', ' .. d .. ', ' .. e .. ', ' .. f .. ', ' .. g .. ', ' .. h, _PED, 255, 255, 255, false ) else outputChatBox ( 'youre not headadmin!' ) end end ) And tell me what output.
-
https://wiki.multitheftauto.com/wiki/SetWeaponProperty You need learn all. See function requirements. Anyway I tabulated and organized your code. Client-side: addEventHandler ( 'onClientPlayerWeaponFire', localPlayer, function ( w, a, aIC, x, y, z, elem ) if ( w == 26 ) then triggerServerEvent ( 'setIt', localPlayer ) end end ) Server-side: addEvent ( 'setIt', true ) addEventHandler ( 'setIt', root, function ( ) setWeaponProperty ( 'sawnoff_shotgun', 'pro', 'maximum_clip_ammo', 1000 ) end )
-
getCameraMatrix ( server-side ) return 8 numbers. Is your script server-side??
-
Hi. I need help with "find a string in the table". Here the code: -- Anims by Ezz Anim = { } Anim.__index = Anim local validTypes = { pulseOut = true, fadeIn = true, fadeOut = true, move = true, moveResize = true } function Anim:Create ( aElem, aType, aTable ) if ( validTypes [ aType ] ) then outputChatBox ( "Passed statement" ) end end If I use "if ( validTypes [ aType ] ) then" and I put "myAnim = Anim:Create ( myElem, pulseOut, { } )" or other thing in pulseOut it doesn't output nothing. If I put "if ( not validTypes [ aType ] ) then" when I put something who isn't in the table it output anyway. Any help?
-
Good job dude! Keep it up.
-
LOL? Start editor and edit the map lol What the problem???
-
LOL? local myMarker = createMarker(2489.1613769531, -1668.5617675781, 11.800, 'cylinder', 2.2, 255, 0, 0, 150) addEventHandler ( "onMarkerHit", root, function ( g_Ped, m_Dim ) if ( source == myMarker and getElementType ( g_Ped ) == "player" ) then timer = setTimer ( setPedOnFire, 1000, 0, g_Ped, true ) end end ) addEventHandler ( "onMarkerLeave", root, function ( g_Ped, m_Dim ) if ( source == g_Ped and getElementType ( g_Ped ) == "player" ) then killTimer ( timer ) end end )
-
Why are you unable to add that setTimer? LOL
-
Show client and server code ( the updated code ).
