Jump to content

adward

Members
  • Posts

    45
  • Joined

  • Last visited

Details

  • Gang
    gang
  • Location
    england

adward's Achievements

Rat

Rat (9/54)

0

Reputation

  1. Get the Moderator must be chosen by: 1 - respect all the members 2 - Do not have a More Irregularities and ban 3 - Do not Use words inappropriately Not on the large number of posting
  2. 3ɑsн8 ɑʟsнɾq is not deserve to get Moderator in this section For one major reason Lack of respect for the members of the Forum So i transpire MR.S3D to get it !
  3. any one know what function use to import handlings this gui GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Window[1] = guiCreateWindow(222,231,364,352,"Imoprt Handligs",false) GUIEditor_Memo[1] = guiCreateMemo(12,21,334,203,"\n1500.0 1200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.25 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(64,239,211,66,"import",false,GUIEditor_Window[1])
  4. hi guys i just need ask how to make bouton that import my handlings if any one know how to make it please help me GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Window[1] = guiCreateWindow(222,231,364,352,"Imoprt Handligs",false) GUIEditor_Memo[1] = guiCreateMemo(12,21,334,203,"\n1500.0 1200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.25 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(64,239,211,66,"import",false,GUIEditor_Window[1])
  5. thanks you so much for help me what about setTimer i tired to make it
  6. i Know to make time in server side but i need know how to make in client side if you know help me
  7. GUIEditor_Window[1] = guiCreateWindow(212,58,358,493,"jail script",false) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_Edit[1] = guiCreateEdit(187,132,162,42,"",false,GUIEditor_Window[1]) guiEditSetReadOnly(GUIEditor_Edit[1],true) GUIEditor_Button[1] = guiCreateButton(206,224,122,44,"jail",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(206,324,119,38,"unjail",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(194,94,124,35,"Player Name:",false,GUIEditor_Window[1]) function update() playerName = getPlayerName ( getLocalPlayer() ) playerList = guiCreateGridList(10,23,174,461,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(playerList,2) local column = guiGridListAddColumn( playerList, "Player", 0.85 ) if ( column ) then for id, playeritem in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( playerList ) guiGridListSetItemText ( playerList, row, column, getPlayerName ( playeritem ), false, false ) end addEventHandler ( "onClientGUIClick", playerList, click ) end end addEventHandler ( "onClientResourceStart", getRootElement(), update) addEventHandler("onClientPlayerJoin", getRootElement(), update) addEventHandler("onClientPlayerQuit", getRootElement(), update) addEventHandler("onClientPlayerChangeNick", getRootElement(), update) function click () local playerName = guiGridListGetItemText ( playerList, guiGridListGetSelectedItem ( playerList ), 1 ) guiSetText ( GUIEditor_Edit[1], playerName ) end function onGuiClick (button, state, absoluteX, absoluteY) if (source == GUIEditor_Button[1]) then playerNick = guiGetText ( GUIEditor_Edit[1] ) triggerServerEvent ("jail", getLocalPlayer(),getLocalPlayer(), playerNick) elseif (source == GUIEditor_Button[2]) then playerNick = guiGetText ( GUIEditor_Edit[1] ) triggerServerEvent ("unjail", getLocalPlayer(),getLocalPlayer(), playerNick) end end
  8. I Need jail player for 1 min 60 sec How to do this in client side and show player on screen Time remaining
  9. Client GUIEditor_Window[1] = guiCreateWindow(212,58,358,493,"jail script",false) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_Edit[1] = guiCreateEdit(187,132,162,42,"",false,GUIEditor_Window[1]) guiEditSetReadOnly(GUIEditor_Edit[1],true) GUIEditor_Button[1] = guiCreateButton(206,224,122,44,"jail",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(206,324,119,38,"unjail",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(194,94,124,35,"Player Name:",false,GUIEditor_Window[1]) function update() playerName = getPlayerName ( getLocalPlayer() ) playerList = guiCreateGridList(10,23,174,461,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(playerList,2) local column = guiGridListAddColumn( playerList, "Player", 0.85 ) if ( column ) then for id, playeritem in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( playerList ) guiGridListSetItemText ( playerList, row, column, getPlayerName ( playeritem ), false, false ) end addEventHandler ( "onClientGUIClick", playerList, click ) end end addEventHandler ( "onClientResourceStart", getRootElement(), update) addEventHandler("onClientPlayerJoin", getRootElement(), update) addEventHandler("onClientPlayerQuit", getRootElement(), update) addEventHandler("onClientPlayerChangeNick", getRootElement(), update) function click () local playerName = guiGridListGetItemText ( playerList, guiGridListGetSelectedItem ( playerList ), 1 ) guiSetText ( GUIEditor_Edit[1], playerName ) end function onGuiClick (button, state, absoluteX, absoluteY) if (source == GUIEditor_Button[1]) then playerNick = guiGetText ( GUIEditor_Edit[1] ) triggerServerEvent ("jail", getLocalPlayer(),getLocalPlayer(), playerNick) elseif (source == GUIEditor_Button[2]) then playerNick = guiGetText ( GUIEditor_Edit[1] ) triggerServerEvent ("unjail", getLocalPlayer(),getLocalPlayer(), playerNick) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) just 1 Question I Need jail player for 1 min 60 sec How to do this in client side and show player on screen Time remaining any one helpme
  10. Its work now thanks you so much
  11. server side not work ERROR: server.lua line 9 and line 32 attemt to call global getPlayerFromPartOfName(HIM)
×
×
  • Create New...