Jump to content

Tete omar

Members
  • Posts

    3,267
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by Tete omar

  1. Tete omar

    Codes

    Hello guys i want when the player abuse in main chat then mute him Thank you
  2. Ok if no way out, then i have an other, request : ) When the player abuse at main chat, then get him auto mute, can you please give me codes and i 'll fix the code with my self thank you
  3. like that ? function sendmessages() if isElement(win1) then local newText = guiGetText(edi2) if newText and string.len(newText) > 0 then local oldText = guiGetText(mem1) if not oldText then oldText = "" end oldText = oldText .. getPlayerName(getLocalPlayer()) .. ":" .. newText .. "\n" guiSetText(mem1, oldText) guiSetText(edi2, "") guiMemoSetCaretIndex(mem1, string.len(oldText)) triggerServerEvent("onSendMessages", getLocalPlayer(), ply,newText) end end end addEventHandler("onSendMessages", getRootElement(), sendmessages)
  4. client side win1 = guiCreateWindow(356,254,683,358,"|~>[Help Panel]<~|",false) guiSetAlpha(win1,1) guiWindowSetSizable(win1,false) mem1 = guiCreateMemo(11,23,663,283,"",false,win1) guiMemoSetReadOnly(mem1,true) edi1 = guiCreateEdit(109,-421,5,296,"",false,win1) butt1 = guiCreateButton(605,310,69,38,"send",false,win1) guiSetProperty(butt1,"Alpha","10") guiSetProperty(butt1,"Font","3") edi2 = guiCreateEdit(9,312,590,31,"",false,win1) guiSetVisible ( win1 ,false ) function sendmessages() if isElement(win1) then local newText = guiGetText(edi2) if newText and string.len(newText) > 0 then local oldText = guiGetText(mem1) if not oldText then oldText = "" end oldText = oldText .. getPlayerName(getLocalPlayer()) .. ":" .. newText .. "\n" guiSetText(mem1, oldText) guiSetText(edi2, "") guiMemoSetCaretIndex(mem1, string.len(oldText)) triggerServerEvent("onSendMessages", getLocalPlayer(), ply,newText) end end end bindKey('f2','down',function() guiSetVisible(mem1,not guiGetVisible(mem1)) showCursor(guiGetVisible(mem1)) end) server side addEvent("onSendMessages", true) addEventHandler("onSendMessages", getRootElement(), function(noise, text) triggerClientEvent(toplayer, "onSendMessages", source, source, text) end ) mm i see no problem with server side but,.. i want when i type in edi2 my text show up in mem1 ..
  5. Yeah i have read .. but i wasn't have anything to say except thanks for help guys.
  6. hey guys i made a gridlist with players ok ? when i select my my self and my serial show up into a label but when i choose a new player i find the same serial just like the serial was freezed on me only here's my code function onClick () selectedRow, selectedCol = guiGridListGetSelectedItem( GUIEditor_Grid[1]) hisName = guiGridListGetItemText( GUIEditor_Grid[1], selectedRow, selectedCol ) hisSerial = getPlayerSerial( GUIEditor_Grid[1], selectedRow, selectedCol ) hisMoney = getPlayerMoney( GUIEditor_Grid[1], selectedRow, selectedCol ) hisPing = getPlayerPing( GUIEditor_Grid[1], selectedRow, selectedCol ) guiSetText ( GUIEditor_Label[7], tostring(hisName)) guiSetText ( GUIEditor_Label[9], tostring(hisSerial)) guiSetText ( GUIEditor_Label[12], tostring(hisMoney)) guiSetText ( GUIEditor_Label[12], tostring(hisPing)) end addEventHandler( "onClientGUIClick", GUIEditor_Grid[1], onClick)
  7. I have no idea why they're talking english though this is arabic forum !
  8. Thanks !! i appreciate your help You always a good person : )
  9. function theMoment() local playerList = GUIEditor_Grid[1] local column = guiGridListAddColumn(GUIEditor_Grid[1],"Players",0.85) if ( column ) then for id, plaItem in ipairs(getElementsByType("player")) do row = guiGridListAddRow ( GUIEditor_Grid[1] ) guiGridListSetItemText ( GUIEditor_Grid[1], row, column, getPlayerName ( plaItem ), false, false ) end end end addEventHandler ( "onClientResourceStart", getRootElement(), theMoment ) Here's a gridlist and if i want to make easy for the player looking for other player how ?
  10. السلام عليكم ورحمة الله وبركاته ------------------------ -- Orginal file by tete -- ------------------------ GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(0.0469,0.2161,0.511,0.6549,"Police Panel",true) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Grid[1] = guiCreateGridList(9,21,217,347,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) GUIEditor_Label[1] = guiCreateLabel(386,71,64,20,"الاسم :",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],0,255,50) guiLabelSetHorizontalAlign(GUIEditor_Label[1],"right",false) GUIEditor_Label[2] = guiCreateLabel(388,101,62,19,"الآيبي :",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],0,150,255) guiLabelSetHorizontalAlign(GUIEditor_Label[2],"right",false) GUIEditor_Label[3] = guiCreateLabel(389,130,61,23,"السيريال :",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[3],0,255,50) guiLabelSetHorizontalAlign(GUIEditor_Label[3],"right",false) GUIEditor_Label[4] = guiCreateLabel(386,157,63,23,"البنق :",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[4],0,150,255) guiLabelSetHorizontalAlign(GUIEditor_Label[4],"right",false) GUIEditor_Label[5] = guiCreateLabel(377,186,73,20,"اسم الحساب:",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[5],0,255,50) GUIEditor_Label[6] = guiCreateLabel(387,216,63,17,"الفلوس:",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[6],0,150,255) guiLabelSetHorizontalAlign(GUIEditor_Label[6],"right",false) GUIEditor_Label[7] = guiCreateLabel(245,71,155,20,"",false,GUIEditor_Window[1]) guiLabelSetHorizontalAlign(GUIEditor_Label[7],"center",false) GUIEditor_Label[8] = guiCreateLabel(279,102,121,18,"",false,GUIEditor_Window[1]) guiLabelSetHorizontalAlign(GUIEditor_Label[8],"center",false) GUIEditor_Label[9] = guiCreateLabel(229,130,161,17,"",false,GUIEditor_Window[1]) GUIEditor_Label[10] = guiCreateLabel(334,158,70,15,"",false,GUIEditor_Window[1]) guiLabelSetHorizontalAlign(GUIEditor_Label[10],"center",false) GUIEditor_Label[11] = guiCreateLabel(236,186,131,24,"",false,GUIEditor_Window[1]) guiLabelSetHorizontalAlign(GUIEditor_Label[11],"center",false) GUIEditor_Label[12] = guiCreateLabel(307,212,93,21,"$",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[12],0,255,50) GUIEditor_Button[1] = guiCreateButton(267,271,93,75,"سلاب 100",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(370,271,95,75,"طرد اللاعب",false,GUIEditor_Window[1]) GUIEditor_Label[13] = guiCreateLabel(236,350,119,13,"* Version 1.0",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[13],255,0,0) GUIEditor_Label[14] = guiCreateLabel(254,38,208,24,"-: معلومات اللاعب :-",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[14],255,0,0) guiLabelSetVerticalAlign(GUIEditor_Label[14],"center") guiLabelSetHorizontalAlign(GUIEditor_Label[14],"center",false) GUIEditor_Label[15] = guiCreateLabel(450,62,22,189,"|\n|\n|\n|",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[15],255,150,0) guiSetFont(GUIEditor_Label[15],"sa-header") GUIEditor_Label[16] = guiCreateLabel(260,251,207,27,"~~~~~~~",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[16],255,150,0) guiLabelSetHorizontalAlign(GUIEditor_Label[16],"center",false) guiSetFont(GUIEditor_Label[16],"sa-gothic") GUIEditor_Button[3] = guiCreateButton(472,27,25,24,"X",false,GUIEditor_Window[1]) guiSetVisible ( GUIEditor_Window[1] ,false ) addEventHandler('onClientGUIClick', root, function () if ( source == GUIEditor_Button[3] ) then guiSetVisible(GUIEditor_Window[1],false) guiSetInputEnabled(false) showCursor(false) elseif ( source == GUIEditor_Button[4] ) then guiSetVisible(GUIEditor_Window[2],false) guiSetInputEnabled(false) showCursor(false) end end) function Anad() local playerList = GUIEditor_Grid[1] local column = guiGridListAddColumn(GUIEditor_Grid[1],"الاعبين",0.85) if ( column ) then for id, plaItem in ipairs(getElementsByType("player")) do row = guiGridListAddRow ( GUIEditor_Grid[1] ) guiGridListSetItemText ( GUIEditor_Grid[1], row, column, getPlayerName ( plaItem ), false, false ) end end end addEventHandler ( "onClientResourceStart", getRootElement(), Anad ) function onClick () selectedRow, selectedCol = guiGridListGetSelectedItem( GUIEditor_Grid[1]) hisName= guiGridListGetItemText( GUIEditor_Grid[1], selectedRow, selectedCol ) guiSetText ( GUIEditor_Label[7], tostring(hisName)) end addEventHandler( "onClientGUIClick", GUIEditor_Grid[1], onClick) function shoshalo () selectedRow, selectedCol = guiGridListGetSelectedItem( GUIEditor_Grid[1]) hisName= getPlayerSerial( GUIEditor_Grid[1], selectedRow, selectedCol ) guiSetText ( GUIEditor_Label[8], tostring(hisName)) end addEventHandler( "onClientGUIClick", GUIEditor_Grid[1], shoshalo) bindKey('m','down',function() guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) end) ابي اي بي الاعب وسيريال الاعب وبنق الاعب واسم حساب الاعب وفلوس الاعب والسلام عليكم ورحمة الله وبركاته
  11. Here's function new() if ( source == GUIEditor_Button[1] ) then GUIEditor_Window[2] = guiCreateWindow(337,492,346,160,"القوانين",false) guiWindowSetMovable(GUIEditor_Window[2],false) guiWindowSetSizable(GUIEditor_Window[2],false) GUIEditor_Memo[3] = guiCreateMemo(9,23,328,128,"Here admins-HeadAdmins type only",false,GUIEditor_Window[2]) end end
  12. If i want to create a memo in a window and set it read only for the players and moderators not for admins and head admins how ? thank you.
  13. Hello guys i just want to know what is the sync with a clear explanation and simple thank you.
  14. Tete omar

    Error

    ? But it's the same error :\ ERROR:8: attempt to call global 'guiCreateWindow' ( a nil value )
  15. Tete omar

    Error

    sorry for misunderstood
  16. Tete omar

    Error

    It's already exist "Tete&mohamed" type="script" version="1.0.0"/>
  17. Tete omar

    Error

    what's worng with this script ? function createGUIWindow1() GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Window[1] = guiCreateWindow(363,194,579,330,"[sSC] Black list",false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Label[1] = guiCreateLabel(80,45,364,34,"No one yet",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Label[2] = guiCreateLabel(7,67,66,24,"Attention:",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],255,0,0) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(70,67,502,15,"Do not copy their names and put it as your nickname becuase you will banned for 2 days",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Button[1] = guiCreateButton(140,271,295,50,"Reason",false,GUIEditor_Window[1]) GUIEditor_Edit[1] = guiCreateEdit(74,-117,98,40,"",false,GUIEditor_Button[1]) GUIEditor_Memo[1] = guiCreateMemo(115,238,345,31," Read Why these peoples in black list",false,GUIEditor_Window[1]) guiMemoSetReadOnly(GUIEditor_Memo[1],true) guiSetVisible ( GUIEditor_Window[1] ,false ) addEventHandler("onClientResourceStart", root, createGUIWindow1) end addCommandHandler("blacklist", createGUIWindow1) debugscript says: ERROR:8: attempt to call global 'guiCreateWindow' ( a nil value )
  18. Is there any cell phone script ? like mark player on map. system, private chat, etc.. sorry if i post in wrong forum
  19. عدلت على stuped هههههههههههههههههه الحين صارت stupid : D !!!
×
×
  • Create New...