-
Posts
854 -
Joined
-
Last visited
-
Days Won
6
Everything posted by MR.GRAND
-
local key = "m" GUIEditor = { gridlist = {}, window = {}, button = {}, label = {} } local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 453) / 2, (screenH - 378) / 2, 453, 378, "xX[Police Panel|لوحة شرطي]Xx", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "9FFB0000") guiSetVisible (GUIEditor.window[1],false) GUIEditor.gridlist[1] = guiCreateGridList(13, 40, 231, 314, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "xX[Player|اللاعب]Xx", 0.9) GUIEditor.button[1] = guiCreateButton(252, 47, 191, 42, "xX[slap|سلاب]Xx", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "9F0750F6") GUIEditor.button[2] = guiCreateButton(252, 167, 191, 42, "xX[Destroy|سحب السيارة]Xx", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "9F0750F6") GUIEditor.label[1] = guiCreateLabel(260, 256, 173, 37, "By Am1N", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "sa-header") guiLabelSetColor(GUIEditor.label[1], 252, 0, 0) guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") GUIEditor.button[3] = guiCreateButton(394, 327, 29, 24, "X", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "9FFB0000") guiGridListClear ( GUIEditor.gridlist[1] ) for i, v in ipairs (getElementsByType ( "player" )) do local Row = guiGridListAddRow ( GUIEditor.gridlist[1] ) guiGridListSetItemText ( GUIEditor.gridlist[1], Row, 1, getPlayerName ( v ), false, false ) end function Show_Hide() if guiGetVisible(GUIEditor.window[1]) == false then guiSetVisible(GUIEditor.window[1], true) showCursor(true) else guiSetVisible(GUIEditor.window[1], false) showCursor(false) end end bindKey(key,"down",Show_Hide) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[3] then if(guiGetVisible(GUIEditor.window[1]) == false)then end guiSetVisible(GUIEditor.window[1],false) showCursor(false) guiSetInputEnabled(false) end end )
-
هذا حطوه جديد الحين يليل متوفر فقط في الاصدار 1.6 احنا شغالين في 1.5 يعني يجيك nil
-
local screenW, screenH = guiGetScreenSize() wnd = { } edit = { } GUIEditor = { button = {}, label = {} } wnd.give = guiCreateWindow((screenW - 373) / 2, (screenH - 189) / 2, 373, 189, "~# Give Level #~", false) guiWindowSetSizable(wnd.give, false) guiSetAlpha(wnd.give, 1.00) pList = guiCreateGridList(10, 22, 146, 157, false, wnd.give) guiGridListAddColumn(pList, "# Player Name", 0.9) GUIEditor.button[1] = guiCreateButton(251, 152, 112, 27, "~# Close #~", false, wnd.give) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.label[1] = guiCreateLabel(161, 28, 202, 15, "Player Level :", false, wnd.give) GUIEditor.button[2] = guiCreateButton(163, 54, 88, 24, "Set Level", false, wnd.give) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.button[3] = guiCreateButton(161, 83, 196, 30, "#Arabic", false, wnd.give) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") GUIEditor.button[4] = guiCreateButton(161, 118, 196, 30, "#English", false, wnd.give) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA") guiSetVisible(wnd.give,false) SetLevelWnd = guiCreateWindow((screenW - 286) / 2, (screenH - 134) / 2, 286, 134, "# Set Level", false) guiWindowSetSizable(SetLevelWnd, false) guiSetAlpha(SetLevelWnd, 1.00) edit.gv = guiCreateEdit(11, 37, 265, 33, "", false, SetLevelWnd) guiEditSetMaxLength(edit.gv, 65535) SetLevel = guiCreateButton(23, 87, 94, 32, "Set Level", false, SetLevelWnd) guiSetProperty(SetLevel, "NormalTextColour", "FFAAAAAA") SLClose = guiCreateButton(166, 87, 94, 32, "Close", false, SetLevelWnd) guiSetProperty(SLClose, "NormalTextColour", "FFAAAAAA") guiSetVisible(SetLevelWnd,false) bindKey ("n","down", function () triggerServerEvent ("checkMido",localPlayer) end ) addEvent ("mIDO",true) addEventHandler ("mIDO",root, function () guiSetVisible(wnd.give,not guiGetVisible(wnd.give)) showCursor(guiGetVisible(wnd.give)) guiSetInputEnabled (guiGetVisible(wnd.give)) end ) addEventHandler("onClientGUIClick",root, function ( ) if ( source == SLClose ) then guiSetVisible(SetLevelWnd,false) showCursor(false) guiSetInputEnabled(false) elseif ( source == GUIEditor.button[1] ) then guiSetVisible(wnd.give,false) showCursor(false) guiSetInputEnabled(false) elseif ( source == GUIEditor.button[2] ) then guiSetVisible(SetLevelWnd,true) guiSetVisible(wnd.give,false) guiSetInputEnabled(false) end end ) function Up ( ) guiGridListClear(pList) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (pList) guiGridListSetItemText (pList,rp,1,getPlayerName(v),false,false) end end addEventHandler ("onClientResourceStart",resourceRoot,Up) addEventHandler ("onClientPlayerJoin",getRootElement( ),Up) addEventHandler ("onClientPlayerChangeNick",getRootElement( ),Up) addEventHandler ("onClientPlayerQuit",getRootElement( ),Up)
-
GUIEditor.staticimage[1] = guiCreateStaticImage(284, 244, 0, 0, "info.png", false, GUIEditor.window[1]) كيف رح تظهر وانت حاط حجم الصورة 0 تأكد من الارقمنت الثالث والرابع
-
addEvent("onPlayerOpenChat",true) addEvent("onPlayerCloseChat",true) function playerchat() if eventName == "onPlayerOpenChat" then addEventHandler("onPlayerChat",root,chatbox) elseif eventName == "onPlayerCloseChat" then removeEventHandler("onPlayerChat",root,chatbox) end end addEventHandler("onPlayerCloseChat",root,playerchat) addEventHandler("onPlayerOpenChat",root,playerchat) addEventHandler("onPlayerChat",root, function( text, type) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("LVL1")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#0099DC* [ Lv.1 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("LVL2")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#2554C7* [ Lv.2 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("LVL3")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#00cc11* [ Lv.3 ] " .. getPlayerName ( source ) ..": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("LVL4")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#007700* [ Lv.4 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("LVL5")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#cc0000* [ Lv.5 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin1")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* [ Lv.6 ] " .. getPlayerName ( source ) ..": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head-Admin")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#C11B17* [ Head.Admin ] " .. getPlayerName ( source ) ..": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* [ Console ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Manager")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#347235* [ T-Developer ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin-Ex")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#777777* [ Admin - EX ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Police")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#007F7F* [ Soldier ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFFFFF* " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) end end ) addEvent("onPlayerCloseChat",true) function chatbox( text, type ) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* [ Console ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) end end
-
تأكد من وضع الصورة في المكان المناسب وتأكد من الميتا ^
-
local marker = createMarker ( -711.24512, 957.28625, 12.37264, "arrow", 1.0, 0, 0, 255, 255 ) function mido (hitPlayer, matchingDimension) setElementPosition (hitPlayer, -721.17816, 971.19604, 12.17490) setElementRotation ( hitPlayer, 0, 0, 0 ) end addEventHandler ( "onMarkerHit", marker, mido ) الخطأ انك حاط اند زائد
-
killPed = Server function only ولا في فلسفة جديدة تقول انه سيرفر وكلنت
-
theNametagShopWindow = guiCreateWindow(0.0575,0.2917,0.1963,0.375,"Nametag Shop",true) guiWindowSetSizable(theNametagShopWindow,false) theNametagShopWindowRedLabel = guiCreateLabel(0.051,0.1333,0.535,0.0933,"Red",true,theNametagShopWindow) guiLabelSetColor(theNametagShopWindowRedLabel,255,255,255) guiLabelSetVerticalAlign(theNametagShopWindowRedLabel,"top") guiLabelSetHorizontalAlign(theNametagShopWindowRedLabel,"left",false) theNametagShopWindowGreenLabel = guiCreateLabel(0.051,0.24,0.5096,0.1022,"Green",true,theNametagShopWindow) guiLabelSetColor(theNametagShopWindowGreenLabel,255,255,255) guiLabelSetVerticalAlign(theNametagShopWindowGreenLabel,"top") guiLabelSetHorizontalAlign(theNametagShopWindowGreenLabel,"left",false) theNametagShopWindowBlueLabel = guiCreateLabel(0.051,0.3511,0.5414,0.0978,"Blue",true,theNametagShopWindow) guiLabelSetColor(theNametagShopWindowBlueLabel,255,255,255) guiLabelSetVerticalAlign(theNametagShopWindowBlueLabel,"top") guiLabelSetHorizontalAlign(theNametagShopWindowBlueLabel,"left",false) theNametagShopWindowRedEdit = guiCreateEdit(0.6306,0.12,0.293,0.1022,"255",true,theNametagShopWindow) theNametagShopWindowGreenEdit = guiCreateEdit(0.6306,0.2222,0.293,0.1022,"255",true,theNametagShopWindow) theNametagShopWindowBlueEdit = guiCreateEdit(0.6306,0.3244,0.293,0.1022,"255",true,theNametagShopWindow) guiEditSetMaxLength (theNametagShopWindowRedEdit,3) guiEditSetMaxLength (theNametagShopWindowGreenEdit,3) guiEditSetMaxLength (theNametagShopWindowBlueEdit,3) theNametagShopWindowExampleTextLabel = guiCreateLabel(0.0573,0.4578,0.879,0.12,"Example Text",true,theNametagShopWindow) guiLabelSetColor(theNametagShopWindowExampleTextLabel,255,255,255) guiLabelSetVerticalAlign(theNametagShopWindowExampleTextLabel,"center") guiLabelSetHorizontalAlign(theNametagShopWindowExampleTextLabel,"center",false) theNametagShopWindowAcceptButton = guiCreateButton(0.0573,0.6089,0.8726,0.2089,"Buy Nametag\n1250$",true,theNametagShopWindow) theNametagShopWindowCloseButton = guiCreateButton(0.0573,0.8356,0.8854,0.12,"Close",true,theNametagShopWindow) guiSetVisible(theNametagShopWindow,false) nametagshopMarker = createMarker (-1951.66,642.98,45.5625,"cylinder",2,0,255,255,127) ------- addEventHandler( 'onClientGUIClick', root, function() if (source == theNametagShopWindowAcceptButton) then if (tonumber(guiGetText (theNametagShopWindowRedEdit)) ~= nil) and (tonumber(guiGetText (theNametagShopWindowGreenEdit)) ~= nil) and (tonumber(guiGetText (theNametagShopWindowBlueEdit)) ~= nil) then guiSetVisible (theNametagShopWindow,false) showCursor (false,false) triggerServerEvent ("gameMenuButtonClick",getLocalPlayer(),"nametagShopAccept",tonumber(guiGetText (theNametagShopWindowRedEdit)),tonumber(guiGetText (theNametagShopWindowGreenEdit)),tonumber(guiGetText (theNametagShopWindowBlueEdit))) end elseif (source == theNametagShopWindowCloseButton) then guiSetVisible (theNametagShopWindow,false) showCursor (false,false) elseif (buttonname == "theNametagShopWindowAcceptButton") then if (getPlayerMoney (source) > 2499) then local charactername = getPlayerNametagText (source) local accountName = getAccountName(getPlayerAccount(source)) local characterindex = getCharacterIndexByCharacterName (accountName,charactername) local playerRoot = xmlFindChild (root,"player",findPlayerIndexByName (tostring(accountName))) local characterRoot = xmlNodeGetChildren (playerRoot,tonumber(characterindex)-1) if (characterRoot) then setPlayerNametagColor (source,tonumber(arg1),tonumber(arg2),tonumber(arg3)) triggerClientEvent ("lolmodOpenInfoWindow",source,"Nametag color succesfully bought!") xmlNodeSetAttribute (characterRoot,"cr",tonumber(arg1)) xmlNodeSetAttribute (characterRoot,"cg",tonumber(arg2)) xmlNodeSetAttribute (characterRoot,"cb",tonumber(arg3)) xmlSaveFile (root) takePlayerMoney (source,1250) end end end end ) ---------- addEventHandler ("onClientMarkerHit",getRootElement(), function(hitElement,matchingDimension) if (getElementType (hitElement) == "player") and (hitElement == getLocalPlayer()) then if (source == nametagshopMarker) then showCursor (true,true) guiSetVisible (theNametagShopWindow,true) end end end ) ما نفعت يقلي ERROR: Loading script failed: nametag/client.lua:2 '=' expected near 'guiWindowSetSizable' theNametagShopWindow = guiCreateWindow(0.0575,0.2917,0.1963,0.375,"Nametag Shop",true) guiWindowSetSizable(theNametagShopWindow,false) theNametagShopWindowRedLabel = guiCreateLabel(0.051,0.1333,0.535,0.0933,"Red",true,theNametagShopWindow) guiLabelSetColor(theNametagShopWindowRedLabel,255,255,255) guiLabelSetVerticalAlign(theNametagShopWindowRedLabel,"top") guiLabelSetHorizontalAlign(theNametagShopWindowRedLabel,"left",false) theNametagShopWindowGreenLabel = guiCreateLabel(0.051,0.24,0.5096,0.1022,"Green",true,theNametagShopWindow) guiLabelSetColor(theNametagShopWindowGreenLabel,255,255,255) guiLabelSetVerticalAlign(theNametagShopWindowGreenLabel,"top") guiLabelSetHorizontalAlign(theNametagShopWindowGreenLabel,"left",false) theNametagShopWindowBlueLabel = guiCreateLabel(0.051,0.3511,0.5414,0.0978,"Blue",true,theNametagShopWindow) guiLabelSetColor(theNametagShopWindowBlueLabel,255,255,255) guiLabelSetVerticalAlign(theNametagShopWindowBlueLabel,"top") guiLabelSetHorizontalAlign(theNametagShopWindowBlueLabel,"left",false) theNametagShopWindowRedEdit = guiCreateEdit(0.6306,0.12,0.293,0.1022,"255",true,theNametagShopWindow) theNametagShopWindowGreenEdit = guiCreateEdit(0.6306,0.2222,0.293,0.1022,"255",true,theNametagShopWindow) theNametagShopWindowBlueEdit = guiCreateEdit(0.6306,0.3244,0.293,0.1022,"255",true,theNametagShopWindow) guiEditSetMaxLength (theNametagShopWindowRedEdit,3) guiEditSetMaxLength (theNametagShopWindowGreenEdit,3) guiEditSetMaxLength (theNametagShopWindowBlueEdit,3) theNametagShopWindowExampleTextLabel = guiCreateLabel(0.0573,0.4578,0.879,0.12,"Example Text",true,theNametagShopWindow) guiLabelSetColor(theNametagShopWindowExampleTextLabel,255,255,255) guiLabelSetVerticalAlign(theNametagShopWindowExampleTextLabel,"center") guiLabelSetHorizontalAlign(theNametagShopWindowExampleTextLabel,"center",false) theNametagShopWindowAcceptButton = guiCreateButton(0.0573,0.6089,0.8726,0.2089,"Buy Nametag\n1250$",true,theNametagShopWindow) theNametagShopWindowCloseButton = guiCreateButton(0.0573,0.8356,0.8854,0.12,"Close",true,theNametagShopWindow) guiSetVisible(theNametagShopWindow,false) nametagshopMarker = createMarker (-1951.66,642.98,45.5625,"cylinder",2,0,255,255,127) ------- addEventHandler( 'onClientGUIClick', root, function() if (source == theNametagShopWindowAcceptButton) then if (tonumber(guiGetText (theNametagShopWindowRedEdit)) ~= nil) and (tonumber(guiGetText (theNametagShopWindowGreenEdit)) ~= nil) and (tonumber(guiGetText (theNametagShopWindowBlueEdit)) ~= nil) then guiSetVisible (theNametagShopWindow,false) showCursor (false,false) triggerServerEvent ("gameMenuButtonClick",getLocalPlayer(),"nametagShopAccept",tonumber(guiGetText (theNametagShopWindowRedEdit)),tonumber(guiGetText (theNametagShopWindowGreenEdit)),tonumber(guiGetText (theNametagShopWindowBlueEdit))) end elseif (source == theNametagShopWindowCloseButton) then guiSetVisible (theNametagShopWindow,false) showCursor (false,false) elseif (buttonname == "theNametagShopWindowAcceptButton") then if (getPlayerMoney (source) > 2499) then local charactername = getPlayerNametagText (source) local accountName = getAccountName(getPlayerAccount(source)) local characterindex = getCharacterIndexByCharacterName (accountName,charactername) local playerRoot = xmlFindChild (root,"player",findPlayerIndexByName (tostring(accountName))) local characterRoot = xmlNodeGetChildren (playerRoot,tonumber(characterindex)-1) if (characterRoot) then setPlayerNametagColor (source,tonumber(arg1),tonumber(arg2),tonumber(arg3)) triggerClientEvent ("lolmodOpenInfoWindow",source,"Nametag color succesfully bought!") xmlNodeSetAttribute (characterRoot,"cr",tonumber(arg1)) xmlNodeSetAttribute (characterRoot,"cg",tonumber(arg2)) xmlNodeSetAttribute (characterRoot,"cb",tonumber(arg3)) xmlSaveFile (root) takePlayerMoney (source,1250) end end end end ) ---------- addEventHandler ("onClientMarkerHit",getRootElement(), function(hitElement,matchingDimension) if (getElementType (hitElement) == "player") and (hitElement == getLocalPlayer()) then if (source == nametagshopMarker) then showCursor (true,true) guiSetVisible (theNametagShopWindow,true) end end end ) مجرب وشغال
-
theNametagShopWindow = guiCreateWindow(0.0575,0.2917,0.1963,0.375,"Nametag Shop",true) guiWindowSetSizable(theNametagShopWindow,false) theNametagShopWindowRedLabel = guiCreateLabel(0.051,0.1333,0.535,0.0933,"Red",true,theNametagShopWindow) guiLabelSetColor(theNametagShopWindowRedLabel,255,255,255) guiLabelSetVerticalAlign(theNametagShopWindowRedLabel,"top") guiLabelSetHorizontalAlign(theNametagShopWindowRedLabel,"left",false) theNametagShopWindowGreenLabel = guiCreateLabel(0.051,0.24,0.5096,0.1022,"Green",true,theNametagShopWindow) guiLabelSetColor(theNametagShopWindowGreenLabel,255,255,255) guiLabelSetVerticalAlign(theNametagShopWindowGreenLabel,"top") guiLabelSetHorizontalAlign(theNametagShopWindowGreenLabel,"left",false) theNametagShopWindowBlueLabel = guiCreateLabel(0.051,0.3511,0.5414,0.0978,"Blue",true,theNametagShopWindow) guiLabelSetColor(theNametagShopWindowBlueLabel,255,255,255) guiLabelSetVerticalAlign(theNametagShopWindowBlueLabel,"top") guiLabelSetHorizontalAlign(theNametagShopWindowBlueLabel,"left",false) theNametagShopWindowRedEdit = guiCreateEdit(0.6306,0.12,0.293,0.1022,"255",true,theNametagShopWindow) theNametagShopWindowGreenEdit = guiCreateEdit(0.6306,0.2222,0.293,0.1022,"255",true,theNametagShopWindow) theNametagShopWindowBlueEdit = guiCreateEdit(0.6306,0.3244,0.293,0.1022,"255",true,theNametagShopWindow) guiEditSetMaxLength (theNametagShopWindowRedEdit,3) guiEditSetMaxLength (theNametagShopWindowGreenEdit,3) guiEditSetMaxLength (theNametagShopWindowBlueEdit,3) theNametagShopWindowExampleTextLabel = guiCreateLabel(0.0573,0.4578,0.879,0.12,"Example Text",true,theNametagShopWindow) guiLabelSetColor(theNametagShopWindowExampleTextLabel,255,255,255) guiLabelSetVerticalAlign(theNametagShopWindowExampleTextLabel,"center") guiLabelSetHorizontalAlign(theNametagShopWindowExampleTextLabel,"center",false) theNametagShopWindowAcceptButton = guiCreateButton(0.0573,0.6089,0.8726,0.2089,"Buy Nametag\n1250$",true,theNametagShopWindow) theNametagShopWindowCloseButton = guiCreateButton(0.0573,0.8356,0.8854,0.12,"Close",true,theNametagShopWindow) guiSetVisible(theNametagShopWindow,false) nametagshopMarker = createMarker (-1951.66,642.98,45.5625,"cylinder",2,0,255,255,127) ------- addEventHandler( 'onClientGUIClick', root, function() if (source == theNametagShopWindowAcceptButton) then if (tonumber(guiGetText (theNametagShopWindowRedEdit)) ~= nil) and (tonumber(guiGetText (theNametagShopWindowGreenEdit)) ~= nil) and (tonumber(guiGetText (theNametagShopWindowBlueEdit)) ~= nil) then guiSetVisible (theNametagShopWindow,false) showCursor (false,false) triggerServerEvent ("gameMenuButtonClick",getLocalPlayer(),"nametagShopAccept",tonumber(guiGetText (theNametagShopWindowRedEdit)),tonumber(guiGetText (theNametagShopWindowGreenEdit)),tonumber(guiGetText (theNametagShopWindowBlueEdit))) end elseif (source == theNametagShopWindowCloseButton) then guiSetVisible (theNametagShopWindow,false) showCursor (false,false) elseif (buttonname == "theNametagShopWindowAcceptButton") then if (getPlayerMoney (source) > 2499) then local charactername = getPlayerNametagText (source) local accountName = getAccountName(getPlayerAccount(source)) local characterindex = getCharacterIndexByCharacterName (accountName,charactername) local playerRoot = xmlFindChild (root,"player",findPlayerIndexByName (tostring(accountName))) local characterRoot = xmlNodeGetChildren (playerRoot,tonumber(characterindex)-1) if (characterRoot) then setPlayerNametagColor (source,tonumber(arg1),tonumber(arg2),tonumber(arg3)) triggerClientEvent ("lolmodOpenInfoWindow",source,"Nametag color succesfully bought!") xmlNodeSetAttribute (characterRoot,"cr",tonumber(arg1)) xmlNodeSetAttribute (characterRoot,"cg",tonumber(arg2)) xmlNodeSetAttribute (characterRoot,"cb",tonumber(arg3)) xmlSaveFile (root) takePlayerMoney (source,1250) end end end end ) ---------- addEventHandler ("onClientMarkerHit",getRootElement(), function(hitElement,matchingDimension) if (getElementType (hitElement) == "player") and (hitElement == getLocalPlayer()) then if (source == nametagshopMarker) then showCursor (true,true) guiSetVisible (theNametagShopWindow,true) end end end )
-
الكلنت حقك مليان اخطاء ~~~
-
المود سويته بسرعة مو حق تصميم ساعتين وكذا هه يعني سكربت بسيط مرة
-
احذف كودات الماركرات اللي معك وحط كودي اللي فوق مجرب 100%
-
خذ ضبطت لك الأثنين -- الداخلي local marker2 = createMarker ( 246.775390625, 62.328125, 1001.640 + .8, "cylinder", 2.0, 0, 0, 0, 0 ) --- Posicion del Marcador ( teleport ). setElementInterior ( marker2, 6 ) function entrarGuard (hitPlayer, matchingDimension) local playerTeam = getPlayerTeam (hitPlayer) local Clann = getTeamFromName ( "Police LS" ) --Equipo que podra usar el marcador. if ( playerTeam ) == Clann then setElementPosition (hitPlayer, 1553.072265625, -1675.5419921875, 16.1953) -- Posicion del jugador donde aparecere cuando toque el marcador. setElementInterior ( hitPlayer, 0 ) -- Interior donde aparecera el jugador. "OJO" Si el jugador aparecera afuera el numero deve ser "0"- setElementRotation ( hitPlayer, 0, 0, 90 ) --Rotacion del jugador ( donde aparecera ) else end end addEventHandler ( "onMarkerHit", marker2, entrarGuard ) --other -- الخارجي --Police LS local marker = createMarker ( 1555.2763671875, -1675.646484375, 14.14 + .8, "cylinder", 2.0, 0, 0, 0, 0 ) --- Posicion del Marcador ( teleport ). function entrarGuard (hitPlayer, matchingDimension) local playerTeam = getPlayerTeam (hitPlayer) local Clann = getTeamFromName ( "Police LS" ) --Equipo que podra usar el marcador. if ( playerTeam ) == Clann then setElementPosition (hitPlayer, 246.8203125, 64.3037109375, 1003.640) -- Posicion del jugador donde aparecere cuando toque el marcador. setElementInterior ( hitPlayer, 6 ) -- Interior donde aparecera el jugador. setElementRotation ( hitPlayer, 0, 0, 0 ) --Rotacion del jugador ( donde aparecera ) else end end addEventHandler ( "onMarkerHit", marker, entrarGuard )
-
^ + 1 احسن له من اللفل الجاهز .. يسوي له لفل خاص فيهء
-
جيب الكود حق زيادة لفل الاعب عند ما يقتل زومبي
-
level = { Players = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() level.Players.wnd = guiCreateWindow((screenW - 342) / 2, (screenH - 405) / 2, 342, 405, "~# Players Levels #~", false) guiWindowSetMovable(level.Players.wnd, false) guiWindowSetSizable(level.Players.wnd, false) guiSetAlpha(level.Players.wnd, 1.00) PlayerList = guiCreateGridList(10, 24, 322, 333, false, level.Players.wnd) guiGridListAddColumn(PlayerList, "# Players", 0.5) guiGridListAddColumn(PlayerList, "# Level", 0.5) PLClose = guiCreateButton(57, 367, 221, 26, "~# Close #~", false, level.Players.wnd) guiSetProperty(PLClose, "NormalTextColour", "FFAAAAAA") guiSetVisible(level.Players.wnd,false) end ) ------------------------------------------------------ bindKey("F5","down", function ( ) guiSetVisible(level.Players.wnd, not guiGetVisible(level.Players.wnd)) showCursor(guiGetVisible(level.Players.wnd)) end) ------------------------------------------------------ function update () guiGridListClear(PlayerList) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (PlayerList) guiGridListSetItemText (PlayerList,rp,1,getPlayerName(v),false,false) guiGridListSetItemText (PlayerList,rp,2,getElementData(v, "kill.level"),false,false) end end addEventHandler ("onClientResourceStart",resourceRoot,update) addEventHandler ("onClientPlayerJoin",root,update) addEventHandler ("onClientPlayerChangeNick",root,update) addEventHandler ("onClientPlayerQuit",root,update)
-
لو م معك كود لفل او مود لفل كيف رح نسوي توب لفل
-
يبوي نبغى الكود اللي لما الاعب يقتل عدد لاعبين يعطيه لفل وزي كذا نبي كود اللي يعطي لفل