Jump to content

xTeacherx

Members
  • Posts

    54
  • Joined

  • Last visited

Details

  • Gang
    ara
  • Interests
    -----------------------

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

xTeacherx's Achievements

Snitch

Snitch (10/54)

0

Reputation

  1. 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)
  2. i do that < but now i wanna if i click to plaer just he will see my words : #
  3. 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
  4. xTeacherx

    سؤال

    https://wiki.multitheftauto.com/wiki/Sta ... Font_Names
  5. النافذة - 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
  6. اطرح اكوادك عشان نقدر نفيدك اكثر
  7. getPedSkin مدري من وين صرفها ^^ بطريقته
  8. اللي فهمته منه ~ انوو اذا ركب مع واحد فالموتر ياخذ من صاحب الموتر فلوس اذ صلح له الموتر *
  9. 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)
  10. 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)
  11. function setMoneyOnWasted ( ) givePlayerMoney ( source, -50 ) outputChatBox("You Lost [ 50 ]", source, 255,255,0, true) end addEventHandler ( "onPlayerWasted", getRootElement(), setMoneyOnWasted )
  12. 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)
×
×
  • Create New...