-
Posts
1,363 -
Joined
-
Last visited
Everything posted by Max+
-
i added some timer for update , function acc ( ) for _, account in pairs( getElementsByType ('player')) do account = getAccountName(getPlayerAccount( account )) triggerClientEvent('onAccountsSend',root, account ) end end addEventHandler('onPlayerLogin',root, acc ) function mmm( ) setTimer ( acc, 1000, 1 ) end addEventHandler('onPlayerJoin', root, mmm ) addEventHandler('onResourceStart', root, mmm )
-
Change Server to this , addEventHandler('onPlayerLogin',root, function ( ) for _, account in pairs( getElementsByType ('player')) do account = getAccountName(getPlayerAccount( account )) triggerClientEvent( 'onAccountsSend',root, account ) end end )
-
what do you mean ? it's get all the accounts in the server and add them to the gridlist as you want .
-
Copy My Post again Login - > start the script .
-
--Client --Client function gridacc (account) local playerList = guiCreateGridList ( 0.80, 0.10, 0.15, 0.60, true ) local column = guiGridListAddColumn( playerList, "Player", 0.85 ) if ( column ) then local row = guiGridListAddRow ( playerList ) guiGridListSetItemText(playerList, row, column, account, false, false ) end end addEvent("onAccountsSend",true) addEventHandler("onAccountsSend",root, gridacc) addEventHandler ( 'onClientResourceStart', resourceRoot, gridacc ) ---server addEventHandler('onPlayerLogin',root, function ( ) for _, account in pairs( getAccounts( ) ) do account = getAccountName( account ) triggerClientEvent( 'onAccountsSend',root, account ) end end ) Make sure your logged in before start the script . Edited @
-
--Client function toggleGUI() if guiGetVisible(GUIEditor_Window[1]) == true then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) else guiSetVisible(GUIEditor_Window[1],true) showCursor(true) end end addEvent("toggleGUI",true) addEventHandler("toggleGUI",root,toggleGUI) ---server addEventHandler("onPlayerJoin",root, function () bindKey(source,"F3","down",showGUI) end) addEventHandler("onResourceStart",resourceRoot, function () for index, player in ipairs(getElementsByType("player")) do bindKey(player,"F3","down",showGUI) end end) function showGUI(thePlayer) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)),aclGetGroup("Admin")) then triggerClientEvent(thePlayer,"toggleGUI",thePlayer) else outputChatBox(" You Dont Have Access to This Panel",thePlayer,255,0,0) end end
-
Copy My post again .
-
you have an Extra end , addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, player in ipairs ( getElementsByType ( "player" ) ) do bindKey ( player, "Y", "down", "chatbox", gangChat ) end end ) addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, "Y", "down", "chatbox", gangChat ) end ) function gangChat ( thePlayer, _, ... ) local isInvited = getElementData ( thePlayer, "invited" ) or false if ( isInvited ) then local text = table.concat ( { ... }, " " ) if ( #text > 0 ) then outputChatBox ("#FF32AA [GangChat] "..getPlayerName(thePlayer)..": #FFFFFF" ..text, thePlayer, 255, 255, 255, true ) end end end addCommandHandler ( "gangChat", gangChat ) function invitePlayer ( thePlayer, _, playerName ) if not playerName then return end local playerToInvite = getPlayerFromName(playerName) if ( isElement ( playerToInvite ) ) and getElementType( playerToInvite ) == "player" then -- At function 'getElementType' you have 'argument' as the argument but this variable doesn't exist so I supposed is 'playerToInvited' setElementData ( playerToInvite, "invited", true ) outputChatBox ( "You have been invited to the chat.", playerToInvite) else outputChatBox ( "There is no such a player!", thePlayer ) end end addCommandHandler ( "invite", invitePlayer )
-
Great Job , See it's nice to depend to yourself ,
-
كودك يطلع الكلام مرتين انا ابي اذا كتبت هاي يطلع هيلو طف مود play وجرب السكربت على مود fallout ...
-
--serverside , addEventHandler ( 'onPlayerLogin', resourceRoot, function ( player ) if not ( isAllownedPlayer(player)) then return end bindKey ( player, 'u', 'down', 'chatbox', adminchat ) end )
-
I have Edited My Post , Copy it again ,
-
well , i tryed for 4 hours to fix this dam script but if i remove the loop and make triggerEvent it create 1 weapon but not firing and if i return the loop it create 1 weapon for every car in the server ... and keep firing i tryed to make it 2 commands , but still the same dam issue i guess maybe it's a bug or something ? addCommandHandler ('mini1', function ( ) for _, nThat in ipairs ( getElementsByType ('vehicle' )) do local x, y, z = getElementPosition ( nThat ) local minigunw = createWeapon ( 'minigun', x, y, z +1 ) setWeaponClipAmmo ( minigunw,99999) setWeaponState ( minigunw,"firing") setWeaponTarget ( minigunw ,nThat, 255 ) setWeaponProperty( minigunw, "fire_rotation", 0, -30, 0 ) end end ) addCommandHandler ('mini2', function ( ) for _, nMax in ipairs ( getElementsByType ('player' )) do local nx, ny, nz = getElementPosition ( nMax ) local minigunw = createWeapon ( 'minigun', nx, ny, nz +1 ) setWeaponClipAmmo ( minigunw,99999) setWeaponState ( minigunw,"firing") setWeaponTarget ( minigunw ,nMax, 255 ) setWeaponProperty( minigunw, "fire_rotation", 0, -30, 0 ) end end )
-
Hello , if it's a custom event you need to do it like this , addEvent('Linkin', true) addEventHandler('Linkin', root, function ( ) ---- if it's an mta function like onPlayerChat, onPlayerJoin ... etc no need , about the Encryption they added Extra because Obfuscation it's hard to decompile
-
Yeah Now it shoots on vehicles and the other one not do anything because there is no players you have to be out of the vehicle so it work ، i have an idea of making 1 mini gun shoot at 2 targts , but i am going out now when iam back , i will do it in other way .
-
Now it works , addCommandHandler ('mini', function ( ) for _, nMax in ipairs ( getElementsByType ('player' )) do for _, nThat in ipairs ( getElementsByType ('vehicle' )) do local nx, ny, nz = getElementPosition ( nMax ) local x, y, z = getElementPosition ( nThat ) local minigunw = createWeapon ( 'minigun', nx, ny, nz +1 ) local minigunw = createWeapon ( 'minigun', x, y, z +1 ) setWeaponClipAmmo ( minigunw,99999) setWeaponState ( minigunw,"firing") setWeaponProperty( minigunw, "fire_rotation", 0, -30, 0 ) setWeaponTarget ( minigunw ,nMax, 255 ) setWeaponTarget ( minigunw ,nThat, 255 ) end end end )
-
Try Change this , x, y, z = getElementPosition ( nMax ) x, y, z = getElementPosition ( nThat ) To , yz, yy, zz = getElementPosition ( nMax ) x, y, z = getElementPosition ( nThat )
-
what's the problem with the rotation ? + see the example about it , CreateWeapon
-
حلو , خش الموقع ذا , http://www.touslesdrivers.com/index.php ... &v_forum=0 وشوف الصورة اول ماتخش ثبت البلوقن حقهم زي ماهو موضح بالصورة رقم 1 اضغط عليه ويحمل منك وخليه لين يتثبت , بعد مايتثبت اضغط على اللي بالصوره رقم 2 , وراح يفحص جهازك كامل وراح تطلع لك تعريفات , صور لي الصفحة حقت التعريفات ولا تسكرها , ,
-
بالضبط , كيف يقول ينفع مع دخول الاعب للسيرفر ؟
-
رسالة الخطأ بالصورة تقول اولا ثبت تعريف انتل وبعدين تثبت تعريف نيفيديا اضغط شعار الوندز + حرف R ويطلع لك مستطيل اكتب فيه dxdiag وتطلع لك نافذة صور لي اول قسم + ثاني قسم
