xTeacherx
Members-
Posts
54 -
Joined
-
Last visited
Everything posted by xTeacherx
-
function gimmeATeam ( source, commandName, teamName ) local newTeam = createTeam ( teamName ) -- create a new team with the specified name if newTeam then -- if it was successfully created giveWeapon ( source, 31, 200 ) -- Gives the M4 weapon with 200 ammo end end addCommandHandler("giveteam", gimmeATeam)
-
بالتوفيق يا برو ~
-
i do that < but now i wanna if i click to plaer just he will see my words : #
-
client --******************************************** --******************************************** userPanelWindow = guiCreateWindow(96,39,614,524,"Party ",false) guiSetVisible (userPanelWindow, false) memo = guiCreateMemo(131,76,464,351,"",false,userPanelWindow) playerNameEdit = guiCreateEdit(126,39,475,32,"",false,userPanelWindow) Button1 = guiCreateButton(130,475,109,37,"Add",false,userPanelWindow) Button2 = guiCreateButton(252,475,109,37,"Send",false,userPanelWindow) Button3 = guiCreateButton(378,475,100,36,"Clear",false,userPanelWindow) Button4 = guiCreateButton(494,475,100,36,"Close",false,userPanelWindow) edit2 = guiCreateEdit(126,435,475,32,"",false,userPanelWindow) function onresourceStart () bindKey ("F1", "down", xx) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onresourceStart) function xx () getVisible = guiGetVisible (userPanelWindow) playerName = getPlayerName ( getLocalPlayer() ) local playerMoney = getPlayerMoney(source) if (getVisible == true) then guiSetVisible (userPanelWindow, false) showCursor (false) end if (getVisible == false) then guiSetVisible (userPanelWindow, true) showCursor (true) playerGridList = guiCreateGridList(10,28,106,487,false,userPanelWindow) playersColumn = guiGridListAddColumn(playerGridList,"Players",0.85) guiGridListSetSelectionMode(playerGridList,2) for id, plaItem in ipairs(getElementsByType("player")) do row = guiGridListAddRow ( playerGridList ) guiGridListSetItemText ( playerGridList, row, playersColumn, getPlayerName ( plaItem ), false, false ) end addEventHandler( "onClientGUIDoubleClick", playerGridList, setGUI, onGuiClick, outputEditBox ) end end function setGUI ( ) selectedRow, selectedCol = guiGridListGetSelectedItem( playerGridList ) gridPlayerName = guiGridListGetItemText( playerGridList, selectedRow, selectedCol ) guiSetText ( playerNameEdit, gridPlayerName ) end -- msg -- function onGuiClick (button, state, absoluteX, absoluteY) if (source == Button1) then playerNick = guiGetText ( playerNameEdit ) amount = guiGetText ( edit2 ) triggerServerEvent ("sendmsg", getLocalPlayer(), playerNick, amount) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) function outputEditBox () local chat = guiGetText(memo) local msg = guiGetText(edit2) triggerServerEvent("onSend",getLocalPlayer(),chat,msg) guiSetText(edit2,"") showCursor( true ) end addEventHandler ( "onClientGUIClick", Button2, outputEditBox ) addEvent("onClient",true) addEventHandler("onClient",getRootElement(), function (chat,msg,name) guiSetText(memo,"" .. name .. " : " .. msg .. "\n" .. chat .. "" ,255,0,0,true) end ) -- close -- addEventHandler ( "onClientGUIClick", root, function () if ( source == Button4 ) then guiSetVisible(userPanelWindow,false) showCursor(false) end end) -- clear -- addEventHandler ( "onClientGUIClick", root, function () if ( source == Button3 ) then guiSetText(memo,"") guiSetText(memo,"") guiSetText(memo,"") guiSetText(memo,"") guiSetText(memo,"") guiSetText(memo,"") guiSetText(memo,"") guiSetText(memo,"") end end) server addEvent("onSend",true) addEventHandler("onSend",getRootElement(), function (sms,msg) local name = getPlayerName(source) triggerClientEvent("onClient",getRootElement(),sms,msg,name) end ) i waanna if i i double click player i will chat with he privte
-
النافذة - userPanelWindow = guiCreateWindow(96,39,614,524,"Party ",false) guiSetVisible (userPanelWindow, false) function onresourceStart () bindKey ("F1", "down", xx) زر فتح النافذة end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onresourceStart) function xx () getVisible = guiGetVisible (userPanelWindow) playerName = getPlayerName ( getLocalPlayer() ) if (getVisible == true) then guiSetVisible (userPanelWindow, false) end if (getVisible == false) then guiSetVisible (userPanelWindow, true) showCursor (true) playerGridList = guiCreateGridList(10,28,106,487,false,userPanelWindow) playersColumn = guiGridListAddColumn(playerGridList,"Players",0.85) guiGridListSetSelectionMode(playerGridList,2) for id, plaItem in ipairs(getElementsByType("player")) do row = guiGridListAddRow ( playerGridList ) guiGridListSetItemText ( playerGridList, row, playersColumn, getPlayerName ( plaItem ), false, false ) end end end
-
getPedSkin مدري من وين صرفها ^^ بطريقته
-
اللي فهمته منه ~ انوو اذا ركب مع واحد فالموتر ياخذ من صاحب الموتر فلوس اذ صلح له الموتر *
-
img2 = guiCreateStaticImage(0.0217,0.0264,0.2928,0.2178,"gg.png",true) window = guiCreateStaticImage(290,86,461,606,"shruk.png",false) guiSetVisible(window,false) function eta() if (source == img2) then guiSetVisible ( window, true ) -- u r window end end addEventHandler("onClientGUIClick",img2,eta,false)
-
Client img2 = guiCreateStaticImage(0.0217,0.0264,0.2928,0.2178,"gg.png",true,window) function eta() if (source == img2) then guiSetVisible ( graag, true ) -- end end addEventHandler("onClientGUIClick",img2,eta,false)
-
function setMoneyOnWasted ( ) givePlayerMoney ( source, -50 ) outputChatBox("You Lost [ 50 ]", source, 255,255,0, true) end addEventHandler ( "onPlayerWasted", getRootElement(), setMoneyOnWasted )
-
function showGUI () guiSetVisible (lol,true) showCursor (true) end addEvent ("showGUI",true) addEventHandler ("showGUI",getRootElement(),showGUI) -- Created: 23/09/2012 16:44 GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(0.2906,0.2943,0.3477,0.3385,"Car Spawn",true) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_Button[1] = guiCreateButton(9,144,427,30,"Get",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(9,177,427,30,"Exit",false,GUIEditor_Window[1]) GUIEditor_TabPanel[1] = guiCreateTabPanel(173,-6839,5,768,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) Infernus = guiCreateGridList(9,21,427,120,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(Infernus,2) guiGridListAddColumn(Infernus,"Car name",0.2) guiGridListAddColumn(Infernus,"Health Car",0.2) for i = 1, 3 do guiGridListAddRow(Infernus) end guiGridListSetItemText(Infernus,0,1,"sultan") guiGridListSetItemText(Infernus,1,1,"Infernus") guiGridListSetItemText(Infernus,2,1,"NRG-500") GUIEditor_Memo[1] = guiCreateMemo(13,217,423,34,"Create Your car then Press \"Get\" _By-NicKeL'z",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(0.3242,0.013,0.3516,0.0521,"Right click to begin - /guihelp for feature details",true) guiLabelSetColor(GUIEditor_Label[1],255,70,70) guiSetFont(GUIEditor_Label[1],"default-bold-small") ------------------------------ theMarker = createMarker(2484.5788574219, -1667.53125, 13.34375, 'cylinder', 2.0, 255, 0, 0, 150) ------------------------------ function het (button, state, absoluteX, absoluteY) if (source == theMarker) then guiSetVisible(GUIEditor_Window[1],true) showCursor ( true ) end end addEventHandler ("onClientMarkerHit", getRootElement(), het)
-
window = guiCreateWindow(223,43,629,714,"news",false) guiSetAlpha(window,0.6) editBox = guiCreateMemo(0.0207,0.5392,0.965,0.3754,"",true,window) button = guiCreateButton(0.027,0.9202,0.4563,0.0672,"Edit",true,window) Clear = guiCreateButton(0.5437,0.9202,0.4372,0.0672,"Clear",true,window) addEventHandler ( "onClientGUIClick", editBox, outputEditBox ) guiEditSetMaxLength ( editBox, 128 ) ---------------------- function outputEditBox () local text = guiGetText ( editBox ) editBo = guiCreateMemo(0.0223,0.0322,0.9603,0.493,""..text.."",true,window) end addEventHandler ( "onClientGUIClick", button, outputEditBox ) السكربت مخزن عندي من فترة وما كملته ~ لانو كانت فترة السكربت ع وقت اختبارات وكذا ونسييته فانشالله فاقرب فرصة راح يكمل السكربت بقي للسكربت - تضيف خاصية انو النافذة ماتفتح الا للادمن وتضيف زر اضافة الكلام مايستخدمه الا الادمن وتربط الملف مع سيرفر لانو لو الملف الاعضاء مايمديهم يشوفو الكلام اللي حدثته
-
Client : window = guiCreateWindow(259,236,532,244,"ping",false) ping = guiCreateLabel(14,317,276,17,"Ping : "..getPlayerPing(getLocalPlayer()),false,window) guiLabelSetColor(ping,255,255,0)
-
n1 But open My Band : D ( Snekars )
-
client : function onGuiClick (button, state, absoluteX, absoluteY) if (source == setNameColor) then red = guiGetText ( redEdit ) green = guiGetText ( greenEdit ) blue = guiGetText ( blueEdit ) triggerServerEvent ("setPlayerNameTagColor", getLocalPlayer(), red, green, blue) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) server : function nameTagColor ( red,green,blue ) setPlayerNametagColor ( source, red,green,blue ) end addEvent( "setPlayerNameTagColor", true ) addEventHandler ( "setPlayerNameTagColor", rootElement, nameTagColor) This script for change name color But i want change ( setPlayerNametagColor ) to ( TextColor )
-
GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(259,236,532,244,"Bind Say",false) word = guiCreateEdit(0.0902,0.2295,0.8346,0.1393,"",true,GUIEditor_Window[1]) bind = guiCreateEdit(0.0902,0.5082,0.8346,0.1352,"",true,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(0.1316,0.75,0.3759,0.1721,"[ Add BindKey ]",true,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(0.5357,0.7459,0.3477,0.1803,"[ unbindKey ]",true,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(0.4962,0.1352,0.1222,0.1189,"Words",true,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],100,200,255) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(0.5075,0.418,0.0714,0.0861,"Key",true,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],100,200,255) guiSetFont(GUIEditor_Label[2],"default-bold-small") function addTheBind() local key = guiGetText(bind) local words = guiGetText(word) if key and words then addEventHandler ( "onClientGUIClick", GUIEditor_Button[1], addTheBind, false ) -- addTheBind is your function name end end Not work
-
Look To PIC: OPEN LINK ! http://im15.gulfup.com/2012-05-05/1336214955211.png
-
hi all GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(259,236,532,244,"Bind Say",false) word = guiCreateEdit(0.0902,0.2295,0.8346,0.1393,"",true,GUIEditor_Window[1]) bind = guiCreateEdit(0.0902,0.5082,0.8346,0.1352,"",true,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(0.1316,0.75,0.3759,0.1721,"[ Add BindKey ]",true,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(0.5357,0.7459,0.3477,0.1803,"[ unbindKey ]",true,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(0.4962,0.1352,0.1222,0.1189,"Words",true,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],100,200,255) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(0.5075,0.418,0.0714,0.0861,"Key",true,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],100,200,255) guiSetFont(GUIEditor_Label[2],"default-bold-small") i dont know how to create ( setbindkey or setUnBindkey )
-
انت قصدك اذا دخل لاعب ماركر ياخذ سلاح ؟
