X-SHADOW
Members-
Posts
721 -
Joined
-
Last visited
Everything posted by X-SHADOW
-
addEventHandler("onVehicleDamage", root, function() cancelEvent() end)
-
Why are you using 2 GuiEditor_Window = {} tables ? i have fixed it the windows no its hide but how can i remove the cloumns to the one how press the button other players dont remove there cloumns
-
Same thing and Same Error
-
its say client 94: call failed to call 'scoreboard:removeScoreboardCloumn' client 95: call failed to call 'scoreboard:removeScoreboardCloumn' client.lua:96: Bad argumnet @ 'guiSetVisble' [Expected gui-element at argument 1, got nill] GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(484,199,553,326,"[@~Call OF Duty MW3 Settings @~]",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Image[1] = guiCreateStaticImage(9,20,535,194,"images/COD.png",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(386,256,158,43,"Yes, i Want",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"clear-normal") GUIEditor_Button[2] = guiCreateButton(9,251,159,46,"No, i Dont",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[2],"clear-normal") GUIEditor_Label[1] = guiCreateLabel(111,221,364,16,"Do You Want To Show COD MW3 Level System And Exp ?",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,0) guiSetFont(GUIEditor_Label[1],"clear-normal") showCursor ( true ) addEvent ( "playSound" , true ) addEventHandler ( "playSound" , root , function() playSound ( "sounds/levelup.wav" , false ) end) GUIEditor_Window = {} GUIEditor_Grid = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[2] = guiCreateWindow( 423,220,477,311,"Level_System v3.0 ",false ) guiWindowSetMovable( GUIEditor_Window[2],false ) guiWindowSetSizable( GUIEditor_Window[2],false ) guiSetVisible( GUIEditor_Window[2],false ) GUIEditor_Grid[1] = guiCreateGridList( 9,21,264,281,false,GUIEditor_Window[2] ) guiGridListSetSelectionMode( GUIEditor_Grid[1],2 ) col = guiGridListAddColumn( GUIEditor_Grid[1],"Players",0.90 ) GUIEditor_Label[1] = guiCreateLabel( 286,43,144,23,"Level:",false,GUIEditor_Window[2] ) guiLabelSetColor( GUIEditor_Label[1],0,255,0 ) guiSetFont( GUIEditor_Label[1],"clear-normal" ) GUIEditor_Label[2] = guiCreateLabel( 284,95,102,21,"EXP:",false,GUIEditor_Window[2] ) guiLabelSetColor( GUIEditor_Label[2],0,0,255 ) guiSetFont( GUIEditor_Label[2],"clear-normal" ) GUIEditor_Image[1] = guiCreateStaticImage( 266,152,182,146,"images/mtalogo.png",false,GUIEditor_Window[2] ) if (col) then for _, player in pairs( getElementsByType 'player' ) do row = guiGridListAddRow ( GUIEditor_Grid[1] ) guiGridListSetItemText( GUIEditor_Grid[1],row,col,getPlayerName( player ),false,false ) end end addEventHandler( 'onClientGUIClick',root, function( ) if (source == GUIEditor_Grid[1]) then local theRow, theCol = guiGridListGetSelectedItem( source ) if (theRow and theCol and theRow ~= -1 and theCol ~= -1) then local playerName = guiGridListGetItemText( source,theRow, theCol ) local player = getPlayerFromName(playerName) if (player and isElement(player)) then local theEXP = getElementData(player, "ExP") or 0 local theLevel = getElementData(player, "Level") or 0 guiSetText(GUIEditor_Label[1], "Level: ".. tostring(theLevel)) guiSetText(GUIEditor_Label[2], "EXP: ".. tostring(theEXP)) else guiSetText(GUIEditor_Label[1], "Level:") guiSetText(GUIEditor_Label[2], "EXP:") end else guiSetText(GUIEditor_Label[1], "Level:") guiSetText(GUIEditor_Label[2], "EXP:") end end end ) function levelup () local Exp = getElementData(localPlayer,"ExP") local Level = getElementData(localPlayer,"Level") if isElement(expLabel) then destroyElement(expLabel) end expLabel = guiCreateLabel(0.777,0.22,0.1708,0.0963,"ExP gained: ??\nTotal ExP: ".. tostring(Exp) .."\nLevel: ".. tostring(Level),true) guiLabelSetColor(expLabel,0,255,0) guiLabelSetVerticalAlign(expLabel,"top") guiLabelSetHorizontalAlign(expLabel,"left",false) guiSetFont(expLabel,"clear-normal") setTimer ( levelup, 2000, 1) end setTimer ( levelup, 2000, 1) addEventHandler( 'onClientGUIClick',root, function() if (source == GUIEditor_Button[1]) then outputChatBox("All Settings Are Enabled",source,255,255,0) elseif (source == GUIEditor_Button[2]) then showCursor ( false ) call(getResourceFromName("scoreboard"), "removeScoreboardColumn", "EXP") call(getResourceFromName("scoreboard"), "removeScoreboardColumn", "Level") guiSetVisible ( GUIEditor_Window[1], false ) guiSetVisible ( GUIEditor_Window[2], false ) outputChatBox("All Sestings Are Disbled",255,255,0) end end )
-
yes its triggerClientEvent
-
i made this is it correct ? GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(484,199,553,326,"[@~Call OF Duty MW3 Settings @~]",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Image[1] = guiCreateStaticImage(9,20,535,194,"images/COD.png",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(386,256,158,43,"Yes, i Want",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"clear-normal") GUIEditor_Button[2] = guiCreateButton(9,251,159,46,"No, i Dont",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[2],"clear-normal") GUIEditor_Label[1] = guiCreateLabel(111,221,364,16,"Do You Want To Show COD MW3 Level System And Exp ?",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,0) guiSetFont(GUIEditor_Label[1],"clear-normal") addEvent ( "playSound" , true ) addEventHandler ( "playSound" , root , function() playSound ( "sounds/levelup.wav" , false ) end) GUIEditor_Window = {} GUIEditor_Grid = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[2] = guiCreateWindow( 423,220,477,311,"Level_System v3.0 ",false ) guiWindowSetMovable( GUIEditor_Window[2],false ) guiWindowSetSizable( GUIEditor_Window[2],false ) guiSetVisible( GUIEditor_Window[2],false ) GUIEditor_Grid[1] = guiCreateGridList( 9,21,264,281,false,GUIEditor_Window[2] ) guiGridListSetSelectionMode( GUIEditor_Grid[1],2 ) col = guiGridListAddColumn( GUIEditor_Grid[1],"Players",0.90 ) GUIEditor_Label[1] = guiCreateLabel( 286,43,144,23,"Level:",false,GUIEditor_Window[2] ) guiLabelSetColor( GUIEditor_Label[1],0,255,0 ) guiSetFont( GUIEditor_Label[1],"clear-normal" ) GUIEditor_Label[2] = guiCreateLabel( 284,95,102,21,"EXP:",false,GUIEditor_Window[2] ) guiLabelSetColor( GUIEditor_Label[2],0,0,255 ) guiSetFont( GUIEditor_Label[2],"clear-normal" ) GUIEditor_Image[1] = guiCreateStaticImage( 266,152,182,146,"images/mtalogo.png",false,GUIEditor_Window[2] ) if (col) then for _, player in pairs( getElementsByType 'player' ) do row = guiGridListAddRow ( GUIEditor_Grid[1] ) guiGridListSetItemText( GUIEditor_Grid[1],row,col,getPlayerName( player ),false,false ) end end addEventHandler( 'onClientGUIClick',root, function( ) if (source == GUIEditor_Grid[1]) then local theRow, theCol = guiGridListGetSelectedItem( source ) if (theRow and theCol and theRow ~= -1 and theCol ~= -1) then local playerName = guiGridListGetItemText( source,theRow, theCol ) local player = getPlayerFromName(playerName) if (player and isElement(player)) then local theEXP = getElementData(player, "ExP") or 0 local theLevel = getElementData(player, "Level") or 0 guiSetText(GUIEditor_Label[1], "Level: ".. tostring(theLevel)) guiSetText(GUIEditor_Label[2], "EXP: ".. tostring(theEXP)) else guiSetText(GUIEditor_Label[1], "Level:") guiSetText(GUIEditor_Label[2], "EXP:") end else guiSetText(GUIEditor_Label[1], "Level:") guiSetText(GUIEditor_Label[2], "EXP:") end end end ) function levelup () local Exp = getElementData(localPlayer,"ExP") local Level = getElementData(localPlayer,"Level") if isElement(expLabel) then destroyElement(expLabel) end expLabel = guiCreateLabel(0.777,0.22,0.1708,0.0963,"ExP gained: ??\nTotal ExP: ".. tostring(Exp) .."\nLevel: ".. tostring(Level),true) guiLabelSetColor(expLabel,0,255,0) guiLabelSetVerticalAlign(expLabel,"top") guiLabelSetHorizontalAlign(expLabel,"left",false) guiSetFont(expLabel,"clear-normal") setTimer ( levelup, 2000, 1) end setTimer ( levelup, 2000, 1) addEventHandler( 'onClientGUIClick',root, function() if (source == GUIEditor_Button[1]) then outputChatBox("All Settings Are Enabled",source,255,255,0) elseif (source == GUIEditor_Button[2] then call(getResourceFromName("scoreboard"), "removeScoreboardColumn", "EXP") call(getResourceFromName("scoreboard"), "removeScoreboardColumn", "Level") guiSetVisible ( GUIEditor_Window[1], false ) guiSetVisible ( GUIEditor_Window[2], false ) outputChatBox("All Sestings Are Disbled",255,255,0) end
-
Capy i well try fix it for you i want ask some thing how to hide Level And Exp Cloumn From Scoreboard ?
-
i swear i cant fix it its hard
-
so it well be like this GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(484,199,553,326,"[@~Call OF Duty MW3 Settings @~]",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Image[1] = guiCreateStaticImage(9,20,535,194,"images/COD.png",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(386,256,158,43,"Yes, i Want",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"clear-normal") GUIEditor_Button[2] = guiCreateButton(9,251,159,46,"No, i Dont",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[2],"clear-normal") GUIEditor_Label[1] = guiCreateLabel(111,221,364,16,"Do You Want To Show COD MW3 Level System And Exp ?",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,0) guiSetFont(GUIEditor_Label[1],"clear-normal") addEvent ( "playSound" , true ) addEventHandler ( "playSound" , root , function() playSound ( "sounds/levelup.wav" , false ) end) GUIEditor_Window = {} GUIEditor_Grid = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[2] = guiCreateWindow( 423,220,477,311,"Level_System v3.0 ",false ) guiWindowSetMovable( GUIEditor_Window[2],false ) guiWindowSetSizable( GUIEditor_Window[2],false ) guiSetVisible( GUIEditor_Window[2],false ) GUIEditor_Grid[1] = guiCreateGridList( 9,21,264,281,false,GUIEditor_Window[2] ) guiGridListSetSelectionMode( GUIEditor_Grid[1],2 ) col = guiGridListAddColumn( GUIEditor_Grid[1],"Players",0.90 ) GUIEditor_Label[1] = guiCreateLabel( 286,43,144,23,"Level:",false,GUIEditor_Window[2] ) guiLabelSetColor( GUIEditor_Label[1],0,255,0 ) guiSetFont( GUIEditor_Label[1],"clear-normal" ) GUIEditor_Label[2] = guiCreateLabel( 284,95,102,21,"EXP:",false,GUIEditor_Window[2] ) guiLabelSetColor( GUIEditor_Label[2],0,0,255 ) guiSetFont( GUIEditor_Label[2],"clear-normal" ) GUIEditor_Image[1] = guiCreateStaticImage( 266,152,182,146,"images/mtalogo.png",false,GUIEditor_Window[2] ) if (col) then for _, player in pairs( getElementsByType 'player' ) do row = guiGridListAddRow ( GUIEditor_Grid[1] ) guiGridListSetItemText( GUIEditor_Grid[1],row,col,getPlayerName( player ),false,false ) end end addEventHandler( 'onClientGUIClick',root, function( ) if (source == GUIEditor_Grid[1]) then local theRow, theCol = guiGridListGetSelectedItem( source ) if (theRow and theCol and theRow ~= -1 and theCol ~= -1) then local playerName = guiGridListGetItemText( source,theRow, theCol ) local player = getPlayerFromName(playerName) if (player and isElement(player)) then local theEXP = getElementData(player, "ExP") or 0 local theLevel = getElementData(player, "Level") or 0 guiSetText(GUIEditor_Label[1], "Level: ".. tostring(theLevel)) guiSetText(GUIEditor_Label[2], "EXP: ".. tostring(theEXP)) else guiSetText(GUIEditor_Label[1], "Level:") guiSetText(GUIEditor_Label[2], "EXP:") end else guiSetText(GUIEditor_Label[1], "Level:") guiSetText(GUIEditor_Label[2], "EXP:") end end end ) function levelup () local Exp = getElementData(localPlayer,"ExP") local Level = getElementData(localPlayer,"Level") if isElement(expLabel) then destroyElement(expLabel) end expLabel = guiCreateLabel(0.777,0.22,0.1708,0.0963,"ExP gained: ??\nTotal ExP: ".. tostring(Exp) .."\nLevel: ".. tostring(Level),true) guiLabelSetColor(expLabel,0,255,0) guiLabelSetVerticalAlign(expLabel,"top") guiLabelSetHorizontalAlign(expLabel,"left",false) guiSetFont(expLabel,"clear-normal") setTimer ( levelup, 2000, 1) end setTimer ( levelup, 2000, 1) addEventHandler( 'onClientGUIClick',root, function( ) if (source == GUIEditor_Button[1]) then outputChatBox("All Settings Are Enabled",source,255,255,0) end) addEventHandler( 'onClientGUIClick',root, function( ) if (source == GUIEditor_Button[2]) then guiSetVisible( GUIEditor_Window[1],false) guiSetVisible( GUIEditor_Window[2],false) destroyElement(expLabel) outputChatBox("All Settings Are Disabled",source,255,255,0) stopSound("levelup.wav") end)
-
lol tapolah iam evil-Cod3r and dev-point but i dont know how to hide labls and windows and cloumns and let the sound dont work
-
Hi all i have Made this clinetSide .. GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(484,199,553,326,"[@~Call OF Duty MW3 Settings @~]",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Image[1] = guiCreateStaticImage(9,20,535,194,"images/COD.png",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(386,256,158,43,"Yes, i Want",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"clear-normal") GUIEditor_Button[2] = guiCreateButton(9,251,159,46,"No, i Dont",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[2],"clear-normal") GUIEditor_Label[1] = guiCreateLabel(111,221,364,16,"Do You Want To Show COD MW3 Level System And Exp ?",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,0) guiSetFont(GUIEditor_Label[1],"clear-normal") addEvent ( "playSound" , true ) addEventHandler ( "playSound" , root , function() playSound ( "sounds/levelup.wav" , false ) end) GUIEditor_Window = {} GUIEditor_Grid = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow( 423,220,477,311,"Level_System v3.0 ",false ) guiWindowSetMovable( GUIEditor_Window[1],false ) guiWindowSetSizable( GUIEditor_Window[1],false ) guiSetVisible( GUIEditor_Window[1],false ) GUIEditor_Grid[1] = guiCreateGridList( 9,21,264,281,false,GUIEditor_Window[1] ) guiGridListSetSelectionMode( GUIEditor_Grid[1],2 ) col = guiGridListAddColumn( GUIEditor_Grid[1],"Players",0.90 ) GUIEditor_Label[1] = guiCreateLabel( 286,43,144,23,"Level:",false,GUIEditor_Window[1] ) guiLabelSetColor( GUIEditor_Label[1],0,255,0 ) guiSetFont( GUIEditor_Label[1],"clear-normal" ) GUIEditor_Label[2] = guiCreateLabel( 284,95,102,21,"EXP:",false,GUIEditor_Window[1] ) guiLabelSetColor( GUIEditor_Label[2],0,0,255 ) guiSetFont( GUIEditor_Label[2],"clear-normal" ) GUIEditor_Image[1] = guiCreateStaticImage( 266,152,182,146,"images/mtalogo.png",false,GUIEditor_Window[1] ) if (col) then for _, player in pairs( getElementsByType 'player' ) do row = guiGridListAddRow ( GUIEditor_Grid[1] ) guiGridListSetItemText( GUIEditor_Grid[1],row,col,getPlayerName( player ),false,false ) end end addEventHandler( 'onClientGUIClick',root, function( ) if (source == GUIEditor_Grid[1]) then local theRow, theCol = guiGridListGetSelectedItem( source ) if (theRow and theCol and theRow ~= -1 and theCol ~= -1) then local playerName = guiGridListGetItemText( source,theRow, theCol ) local player = getPlayerFromName(playerName) if (player and isElement(player)) then local theEXP = getElementData(player, "ExP") or 0 local theLevel = getElementData(player, "Level") or 0 guiSetText(GUIEditor_Label[1], "Level: ".. tostring(theLevel)) guiSetText(GUIEditor_Label[2], "EXP: ".. tostring(theEXP)) else guiSetText(GUIEditor_Label[1], "Level:") guiSetText(GUIEditor_Label[2], "EXP:") end else guiSetText(GUIEditor_Label[1], "Level:") guiSetText(GUIEditor_Label[2], "EXP:") end end end ) bindKey( 'F7','down', function( ) guiSetVisible( GUIEditor_Window[1], not guiGetVisible( GUIEditor_Window[1] ) ) showCursor( guiGetVisible( GUIEditor_Window[1] ) ) end ) function levelup () local Exp = getElementData(localPlayer,"ExP") local Level = getElementData(localPlayer,"Level") if isElement(expLabel) then destroyElement(expLabel) end expLabel = guiCreateLabel(0.777,0.22,0.1708,0.0963,"ExP gained: ??\nTotal ExP: ".. tostring(Exp) .."\nLevel: ".. tostring(Level),true) guiLabelSetColor(expLabel,0,255,0) guiLabelSetVerticalAlign(expLabel,"top") guiLabelSetHorizontalAlign(expLabel,"left",false) guiSetFont(expLabel,"clear-normal") setTimer ( levelup, 2000, 1) end setTimer ( levelup, 2000, 1) serverSide.. exports.scoreboard:scoreboardAddColumn("EXP") exports.scoreboard:scoreboardAddColumn("Level") function win(ammo, killer, weapon, bodypart) local H = getElementData(killer, "EXP") local S = getElementData(killer, "Level") local killer1 = getPlayerName(killer) local noob = getPlayerName(source) if killer and killer ~= source then setElementData(killer, "EXP", tonumber(H)+1) if tonumber(H) == 50 then setElementData(killer, "Level", "Lvl 1 !") triggerClientEvent ( killer, "playSound" , killer ) elseif tonumber(H) == 65 then setElementData(killer, "Level", "Lvl 2 !") triggerClientEvent ( killer, "playSound" , killer ) elseif tonumber(H) == 75 then setElementData(killer, "Level", "Lvl 3 !") triggerClientEvent ( killer, "playSound" , killer ) elseif tonumber(H) == 95 then setElementData(killer, "Level", "Lvl 4 !") triggerClientEvent ( killer, "playSound" , killer ) elseif tonumber(H) == 120 then setElementData(killer, "Level", "Lvl 5 !") triggerClientEvent ( killer, "playSound" , killer ) elseif tonumber(H) == 250 then setElementData(killer, "Level", "Lvl 6 !") triggerClientEvent ( killer, "playSound" , killer ) elseif tonumber(H) == 370 then setElementData(killer, "Level", "Lvl 7 !") triggerClientEvent ( killer, "playSound" , killer ) elseif tonumber(H) == 420 then setElementData(killer, "Level", "Lvl 8 !") triggerClientEvent ( killer, "playSound" , killer ) elseif tonumber(H) == 560 then setElementData(killer, "Level", "Lvl 9 !") triggerClientEvent ( killer, "playSound" , killer ) elseif tonumber(H) == 1000 then triggerClientEvent ( killer, "playSound" , killer ) setElementData(killer, "Level", "Lvl 10 !") end outputChatBox(killer1 .. " Killed " .. noob .. " and gained +1 ExP ", getRootElement(), 255, 255, 0, false) end end addEventHandler( "onPlayerWasted", getRootElement(), win) function onLogin (_,account) setElementData(source, "Level", getAccountData(account, "lvl") or "Level 0 !") setElementData(source, "EXP", getAccountData(account, "exp") or "0") end addEventHandler ("onPlayerLogin", root, onLogin) function onQuit() local account = getPlayerAccount(source) if not account then return end if not isGuestAccount(account) then setAccountData (account, "lvl", getElementData(source, "Level")) setAccountData (account, "exp", getElementData(source, "EXP")) end end addEventHandler ("onPlayerQuit", root, onQuit) my point is if player press Y,i want Button then show to him all Level And Exp windows and lables and if he press No,i Dont the Hide all labels and msgs and EXP Cloumn and level Cloumn and Windows * Hope No One Steal it
-
https://wiki.multitheftauto.com/wiki/Cli ... _functions
-
try this clientSide .. GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Checkbox = {} GUIEditor_Label = {} GUIEditor_Edit = {} addEventHandler("onClientResourceStart",resourceRoot, function() GUIEditor_Window[1] = guiCreateWindow(130,156,513,341,"GUI Login-Register By ElMota",false) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,38,495,294,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Login",GUIEditor_TabPanel[1]) GUIEditor_Label[1] = guiCreateLabel(12,46,21,21,"Nick",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[1],200, 0, 0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Edit[1] = guiCreateEdit(42,42,158,23,"",false,GUIEditor_Tab[1]) guiEditSetMaxLength(GUIEditor_Edit[1],22) GUIEditor_Label[2] = guiCreateLabel(8,113,63,19,"Contrase?a",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[2],200 ,0 ,0) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Edit[2] = guiCreateEdit(75,108,134,26,"",false,GUIEditor_Tab[1]) guiEditSetMasked(GUIEditor_Edit[2],true) guiEditSetMaxLength(GUIEditor_Edit[2],10) GUIEditor_Button[1] = guiCreateButton(17,182,190,54,"Loggearme",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Button[1],"sa-header") GUIEditor_Memo[1] = guiCreateMemo(260,25,222,108,"Favor Loggearse :\n\nPrivilegios de estar loggeado :\n\n- se te guardaran todos tus datos en mi sistema mySQL",false,GUIEditor_Tab[1]) guiMemoSetReadOnly(GUIEditor_Memo[1],true) GUIEditor_Label[3] = guiCreateLabel(213,228,268,34,"GUI Creada por ElMota CopyRight 2011-2012 (c)",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[3],200,0,0) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Checkbox[1] = guiCreateCheckBox(132,146,354,28,"Acepto los Terminos y Condiciones de este Servidor",false,false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Checkbox[1],"default-bold-small") GUIEditor_Checkbox[2] = guiCreateCheckBox(28,80,194,22,"Mostrar Contrase?a",false,false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Checkbox[2],"default-bold-small") GUIEditor_Tab[2] = guiCreateTab("Register",GUIEditor_TabPanel[1]) GUIEditor_Label[4] = guiCreateLabel(4,32,26,16,"Nick",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[4],200,0,0) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Edit[3] = guiCreateEdit(35,23,176,30,"",false,GUIEditor_Tab[2]) guiEditSetMaxLength(GUIEditor_Edit[3],23) GUIEditor_Label[5] = guiCreateLabel(2,80,65,22,"Contrase?a",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[5],200,0,0) guiSetFont(GUIEditor_Label[5],"default-bold-small") GUIEditor_Edit[4] = guiCreateEdit(73,74,140,31,"",false,GUIEditor_Tab[2]) guiEditSetMasked(GUIEditor_Edit[4],true) guiEditSetMaxLength(GUIEditor_Edit[4],10) GUIEditor_Label[6] = guiCreateLabel(3,128,40,16,"e-mail",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[6],200,0,0) guiSetFont(GUIEditor_Label[6],"default-bold-small") GUIEditor_Edit[5] = guiCreateEdit(47,118,168,30,"",false,GUIEditor_Tab[2]) guiEditSetMaxLength(GUIEditor_Edit[5],20) GUIEditor_Button[2] = guiCreateButton(14,179,207,68,"Registrarme",false,GUIEditor_Tab[2]) guiSetFont(GUIEditor_Button[2],"sa-header") GUIEditor_Memo[2] = guiCreateMemo(243,17,240,128,"Recuerda antes De loggearte debes estar registrado aqui osino no podras jugar ^^ GUI Creada por ElMota (c)",false,GUIEditor_Tab[2]) guiMemoSetReadOnly(GUIEditor_Memo[2],true) GUIEditor_Checkbox[3] = guiCreateCheckBox(246,162,215,28,"Mostrar Contrase?a",false,false,GUIEditor_Tab[2]) guiSetFont(GUIEditor_Checkbox[3],"default-bold-small") GUIEditor_Checkbox[4] = guiCreateCheckBox(223,217,263,21,"Acepto los terminos y Condiciones de este server",false,false,GUIEditor_Tab[2]) guiSetFont(GUIEditor_Checkbox[4],"default-small") guiSetVisible(GUIEditor_Window[1], false) addEventHandler("onClientGUIClick", GUIEditor_Button[1], clientSubmitLogin, false) addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == GUIEditor_Checkbox[1] ) then guiEditSetMasked ( GUIEditor_Edit[2], true ), guiCheckBoxGetSelected ( source ) ) end end showTheGUI() end ) function showTheGUI() outputChatBox("Bienvenido a mi Servidor de MTA porfavor Loggeate.") -- if the GUI was successfully created, then show the GUI to the player if (GUIEditor_Window[1] ~= nil) then guiSetVisible(GUIEditor_Window[1], true) else -- if the GUI hasnt been properly created, tell the player outputChatBox("An unexpected error has occurred and the log in GUI has not been created.") end -- enable the players cursor (so they can select and click on the components) showCursor(true) -- set the input focus onto the GUI, allowing players (for example) to press 'T' without the chatbox opening guiSetInputEnabled(true) end function clientSubmitLogin ( button, state ) if ( button == "left" and state == "up" ) then local username = guiGetText(GUIEditor_Edit[1]) local password = guiGetText(GUIEditor_Edit[2]) -- if the username and password both exist if ( username and password ) then triggerServerEvent("submitLogin", localPlayer, username, password) guiSetInputEnabled(false) guiSetVisible(GUIEditor_Window[1], false) showCursor(false) else outputChatBox("Porfavor pon tu Nick y tu Contrase?a.") end end end
-
GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Edit = {} GUIEditor_Window[1] = guiCreateWindow(0.3499,0.3607,0.2401,0.1771,"تغير الاسم 1.0",true)nick = guiCreateEdit(85,50,169,37,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(111,102,106,25,"تغير",false,GUIEditor_Window[1]) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if source == GUIEditor_Button[1] then triggerServerEvent ("Nick", getLocalPlayer()) end end ) and you have to make the serverSide try
-
كود اعطاء سيارة https://wiki.multitheftauto.com/wiki/CreateVehicle اعطاء سلاح https://wiki.multitheftauto.com/wiki/GiveWeapon اعطاء درع https://wiki.multitheftauto.com/wiki/SetPedArmor اعطاء دم https://wiki.multitheftauto.com/wiki/SetElementHealth
-
استخدم الاكواد التالية https://wiki.multitheftauto.com/wiki/GetPlayerTeamhttps://wiki.multitheftauto.com/wiki/IsObjectInACLGroup https://wiki.multitheftauto.com/wiki/SetPlayerTeam
-
lol its must be type="server" becuse you are using onPlayerLogin and Quit not on ClientPlayerLogin and Quit
-
i guss there is not function as you want but use this local root = getRootElement() addEventHandler("onPlayerLogin", root, function() outputChatBox(getPlayerName(source).." has logged in!", root) end ) local root = getRootElement() addEventHandler("onPlayerLogout", root, function() outputChatBox(getPlayerName(source).." has logged out!", root) end )
-
yours ? its copy form dev-point or Evil-Cod3r in the script section do you know why becuse the { blood } name you steal it
-
Hi all iam trying to make commands script see but i think i did not make it right local spam = {} function list () if(not spam[source]) then spam[source] = 1 elseif (spam[source] == 5) then cancelevent() outputChatBox("Please refrain From Command Spamming !", source, 255, 0, 0) else spam[source] == spam[source] + 1 end end addEventHandler("onPlayerCommand", root, list) setTimer(function list = {} end, 2000, 0) function sa (cmd) if cmd == 'gun' then outputChatBox(getPlayerName(source) .. "Has Write [Gun] !",255,255,0) elseif cmd == 'rsp' then outputChatBox(getPlayerName(source) .. "Has Write [rsp] ! ",255,255,0) end end addEventHandler("onPlayerCommand", root, sa)
-
removeCommandHandler("kill")
-
lol this hard then mta wiki lol
-
oh my bad my pc is have errors with browser sorry again updated ! post
