-
Posts
1,411 -
Joined
-
Last visited
-
Days Won
2
Everything posted by WASSIm.
-
addEventHandler( 'onClienRender', root, function ( ) local Hour, Minutes = getTime() if Hour == 6 and Minutes == 0 then local sound = playSound("sounds/Morning.mp3") setSoundVolume(sound, 50.0) elseif Hour == 12 and Minutes == 0 then local sound = playSound("sounds/Day.mp3") setSoundVolume(sound, 50.0) elseif Hour == 15 and Minutes == 0 then local sound = playSound("sounds/Dusk.mp3") setSoundVolume(sound, 50.0) elseif Hour == 20 and Minutes == 0 then local sound = playSound("sounds/Night.mp3") setSoundVolume(sound, 50.0) end end )
-
9ali Désolé - votre dernière action n'a pas pu être terminée Si vous étiez en train d'effectuer un achat ou d'envoyer de l'argent, nous vous conseillons de vérifier votre compte PayPal et vos emails dans 30 minutes pour vous assurer que la transaction a bien été effectuée. Si vous êtes parvenu sur cette page à partir d'un autre site, veuillez retourner sur ce site (n'utilisez pas le bouton Retour de votre navigateur) et reprenez votre opération. Si vous êtes venu sur cette page à partir du site de PayPal, cliquez sur le logo PayPal en haut à gauche pour retourner à notre page d'accueil et reprenez votre opération. Vous devrez peut-être vous reconnecter.
-
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() theWeapon = createWeapon("m4", 1, 1, 3) setWeaponOwner(theWeapon, localPlayer) setWeaponClipAmmo(theWeapon, 10) setWeaponAmmo(theWeapon, 90) end) function handleCustomWeapon() if getKeyState("mouse1") then setWeaponState(theWeapon, "firing") else setWeaponState(theWeapon, "ready") end dxDrawText("getWeaponClipAmmo = "..getWeaponClipAmmo(theWeapon).." \n getWeaponAmmo = "..getWeaponAmmo(theWeapon), 100, 200) setControlState("fire", false) end addEventHandler("onClientPreRender", getRootElement(), handleCustomWeapon)
-
can players join server ?
-
i have scripts and i searching server
-
you want show time in chat ?
-
fr_client.lua CONTROL_MARGIN_RIGHT = 5 LINE_MARGIN = 5 LINE_HEIGHT = 16 g_Root = getRootElement() g_ResRoot = getResourceRootElement(getThisResource()) g_Me = getLocalPlayer() server = createServerCallInterface() guiSetInputMode("no_binds_when_editing") --------------------------- -- Set skin window --------------------------- function skinInit() setControlNumber(wndSkin, 'skinid', getElementModel(g_Me)) end function showSkinID(leaf) if leaf.id then setControlNumber(wndSkin, 'skinid', leaf.id) end end function applySkin() local skinID = getControlNumber(wndSkin, 'skinid') if skinID then server.setMySkin(skinID) fadeCamera(true) end end wndSkin = { 'wnd', text = 'Set skin', width = 250, x = -20, y = 0.3, controls = { { 'lst', id='skinlist', width=230, height=290, columns={ {text='Skin', attr='name'} }, rows={xml='skins.xml', attrs={'id', 'name'}}, onitemclick=showSkinID, onitemdoubleclick=applySkin }, {'txt', id='skinid', text='', width=50}, {'btn', id='set', onclick=applySkin}, {'btn', id='close', closeswindow=true} }, oncreate = skinInit } function setSkinCommand(cmd, skin) skin = skin and tonumber(skin) if skin then server.setMySkin(skin) fadeCamera(true) closeWindow(wndSpawnMap) closeWindow(wndSetPos) end end addCommandHandler('setskin', setSkinCommand) addCommandHandler('ss', setSkinCommand) --------------------------- --- Set animation window --------------------------- function applyAnimation(leaf) if type(leaf) ~= 'table' then leaf = getSelectedGridListLeaf(wndAnim, 'animlist') if not leaf then return end end server.setPedAnimation(g_Me, leaf.parent.name, leaf.name, true, true) end function stopAnimation() server.setPedAnimation(g_Me, false) end wndAnim = { 'wnd', text = 'Set animation', width = 250, x = -20, y = 0.3, controls = { { 'lst', id='animlist', width=230, height=290, columns={ {text='Animation', attr='name'} }, rows={xml='animations.xml', attrs={'name'}}, expandlastlevel=false, onitemdoubleclick=applyAnimation }, {'btn', id='set', onclick=applyAnimation}, {'btn', id='stop', onclick=stopAnimation}, {'btn', id='close', closeswindow=true} } } addCommandHandler('anim', function(command, lib, name) server.setPedAnimation(g_Me, lib, name, true, true) end ) --------------------------- -- Weapon window --------------------------- function addWeapon(leaf, amount) if type(leaf) ~= 'table' then leaf = getSelectedGridListLeaf(wndWeapon, 'weaplist') amount = getControlNumber(wndWeapon, 'amount') if not amount or not leaf then return end end server.giveMeWeapon(leaf.id, amount) end wndWeapon = { 'wnd', text = 'Give weapon', width = 250, controls = { { 'lst', id='weaplist', width=230, height=280, columns={ {text='Weapon', attr='name'} }, rows={xml='weapons.xml', attrs={'id', 'name'}}, onitemdoubleclick=function(leaf) addWeapon(leaf, 500) end }, {'br'}, {'txt', id='amount', text='500', width=60}, {'btn', id='add', onclick=addWeapon}, {'btn', id='close', closeswindow=true} } } function giveWeaponCommand(cmd, weapon, amount) weapon = tonumber(weapon) or getWeaponIDFromName(weapon) if not weapon then return end amount = amount and tonumber(amount) or 500 server.giveMeWeapon(math.floor(weapon), amount) end addCommandHandler('give', giveWeaponCommand) addCommandHandler('wp', giveWeaponCommand) --------------------------- -- Fighting style --------------------------- addCommandHandler('setstyle', function(cmd, style) style = style and tonumber(style) if style then server.setPedFightingStyle(g_Me, style) end end ) --------------------------- -- Clothes window --------------------------- function clothesInit() if getElementModel(g_Me) ~= 0 then errMsg('You must have the CJ skin set in order to apply clothes.') closeWindow(wndClothes) return end if not g_Clothes then triggerServerEvent('onClothesInit', g_Me) end end addEvent('onClientClothesInit', true) addEventHandler('onClientClothesInit', g_Root, function(clothes) g_Clothes = clothes.allClothes for i,typeGroup in ipairs(g_Clothes) do for j,cloth in ipairs(typeGroup.children) do if not cloth.name then cloth.name = cloth.model .. ' - ' .. cloth.texture end cloth.wearing = clothes.playerClothes[typeGroup.type] and clothes.playerClothes[typeGroup.type].texture == cloth.texture and clothes.playerClothes[typeGroup.type].model == cloth.model or false end table.sort(typeGroup.children, function(a, b) return a.name < b.name end) end bindGridListToTable(wndClothes, 'clothes', g_Clothes, false) end ) function clothListClick(cloth) setControlText(wndClothes, 'addremove', cloth.wearing and 'remove' or 'add') end function applyClothes(cloth) if not cloth then cloth = getSelectedGridListLeaf(wndClothes, 'clothes') if not cloth then return end end if cloth.wearing then cloth.wearing = false setControlText(wndClothes, 'addremove', 'add') server.removePlayerClothes(g_Me, cloth.parent.type) else local prevClothIndex = table.find(cloth.siblings, 'wearing', true) if prevClothIndex then cloth.siblings[prevClothIndex].wearing = false end cloth.wearing = true setControlText(wndClothes, 'addremove', 'remove') server.addPedClothes(g_Me, cloth.texture, cloth.model, cloth.parent.type) end end wndClothes = { 'wnd', text = 'Clothes', x = -20, y = 0.3, width = 350, controls = { { 'lst', id='clothes', width=
-
local col50 = createColTube(778.02728271484, -1325.1665039063, 13.546875, 10, 10) local gate50 = createObject(980,777.1341796875,-1329.7197265625,14.546875, 0, 0 , 178.50030517578 ) function openGate50(thePlayer) if (getElementType(thePlayert) == "player") then local group = exports.UIPgroups:getPlayerGroup(thePlayer) if (exports.UIPteams:isPlayerInTeams(thePlayer, "Staff")) or ((group) and (group == "SWATTeam")) then moveObject(gate50,1000,777.1845703125,-1329.7197265625,14.546875+6, 0, 0, 0 ) end end end addEventHandler("onColShapeHit", col50, openGate50) function closeGate50(thePlayer) if (getElementType(thePlayer) == "player") then local group = exports.UIPgroups:getPlayerGroup(thePlayer) if (exports.UIPteams:isPlayerInTeams(thePlayer, "Staff")) or ((group) and (group == "SWATTeam")) then moveObject(gate50, 980,777.1845703125,-1329.7197265625,14.546875, 0, 0, 0) end end end addEventHandler("onColShapeLeave", col50, closeGate50)
-
ahla lolad habit nasel 3ala paypal. ya5i manjmch na3ml button donate ? ( 3amlt [b ][/b ] chmata fi abxf )
-
4 الاصدار: https://nightly.multitheftauto.com/mtasa-1.3.4-rc ... 130829.exe
-
function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end bindKey( "0", "down", function ( ) --if (getPlayerTeam ( localPlayer ) and getTeamName ( getPlayerTeam ( localPlayer ) ) == "STAFF") then local window = guiGetVisible ( windows ) if ( window == true ) then guiSetVisible ( windows, false ) showCursor ( false) else guiSetVisible ( windows, true ) showCursor ( true) triggerServerEvent("onLoadPlayerList", getRootElement()) triggerServerEvent("onLoadResourcesList", getRootElement()) triggerServerEvent("onLoadAccountsList", getRootElement()) end --end end ) -------------------------------------------------------------------------------------------------- -----------------------------------------WINDOWS-------------------------------------------------- -------------------------------------------------------------------------------------------------- windows = guiCreateWindow(380, 131, 763, 575, "Admin Panel", false) guiWindowSetSizable(windows, false) guiSetVisible ( windows, false ) centerWindow(windows) tabpanel = guiCreateTabPanel(10, 26, 743, 539, false, windows) -------------------------------------------------------------------------------------------------- -------------------------------------TAB ACOUNTS-------------------------------------------------- -------------------------------------------------------------------------------------------------- tabaccounts = guiCreateTab("Acounts", tabpanel) tabaccountslist = guiCreateGridList(10, 10, 203, 495, false, tabaccounts) tabaccountslistcolumn = guiGridListAddColumn(tabaccountslist, "Acounts", 0.-- s8) --> tabaccountsinfo = guiCreateLabel(223, 10, 324, 495, "Account General Information:\n\n-Account Name:\n\n\n\nGame Information:\n\n-Created Time:\n-Last Time Connected:\n-Time Onilne:", false, tabaccounts) guiSetFont(tabaccountslist, "default-bold-small") tabaccountscreateaccount = guiCreateButton(547, 10, 190, 32, "Create Acount", false, tabaccounts) tabaccountsdeleteaccount = guiCreateButton(547, 78, 190, 32, "Delete Account", false, tabaccounts) tabaccountsline1 = guiCreateLabel(547, 53, 190, 15, "-------------------------------------------------------------", false, tabaccounts) tabaccountschangepassworld = guiCreateButton(547, 121, 190, 32, "Change Passworld", false, tabaccounts) addEvent ( "onClientLoadAccountsList", true ) addEventHandler ( "onClientLoadAccountsList", root, function ( accounts ) guiGridListClear ( tabaccountslist ) for _, name in ipairs ( accounts ) do local row = guiGridListAddRow ( tabaccountslist ) guiGridListSetItemText ( tabaccountslist, row, tabaccountslistcolumn, name, false, false ) end end )
-
viewtopic.php?f=91&t=64948 stop double post plis
-
can make it plis. don't understand the tables
-
nothing and no error CLIENT addEvent("onClientLoadAccountsList",true) addEventHandler("onClientLoadAccountsList", root, function(text) guiGridListClear(tabaccountslist) local row = guiGridListAddRow ( tabaccountslist ) guiGridListSetItemText ( tabaccountslist, row, tabaccountslistcolumn, text, false, false ) end ) SERVER function onLoadAccountsList( ) for _,accounts in ipairs(getAccounts()) do local names = getAccountName(accounts) triggerClientEvent("onClientLoadAccountsList",root,names) end end addEvent( "onLoadAccountsList", true ) addEventHandler( "onLoadAccountsList", getRootElement(), onLoadAccountsList)
-
hi guys i have question how get all acount in guiGridList ?
-
local coco = createMarker( -5894.84375, 1705.669921875, 190.88436889648, "cylinder", 3, 143, 7, 49, 255)
-
can not speak tunisien in forum only english if want speak tunisien and more help go here: viewforum.php?f=166