Jump to content

HUNGRY:3

Members
  • Posts

    395
  • Joined

  • Last visited

Everything posted by HUNGRY:3

  1. getRootElement() is old and root is getRootElement() so your code won't work
  2. Which gamemode you're using freeroam? If so edit the resource
  3. You need some thing to refresh it or just use settimer
  4. Are you using Linux? If not then the host can only update it and you can't
  5. function test ( source,killer ) local level = getPlayerWantedLevel ( killer ) if getTeamName(getPlayerTeam(killer)) == "Criminal" then if getTeamName(getPlayerTeam(source)) == "Criminal" then setPlayerWantedLevel ( killer, level) end end end addEventHandler ( "onPlayerWasted", getRootElement (), test )
  6. Client lp = getLocalPlayer() function enterveh () if getElementData(lp,"sha") == true then txd = engineLoadTXD("infernus.txd", 411 ) engineImportTXD(txd, 411) dff = engineLoadDFF("infernus.dff", 411 ) engineReplaceModel(dff, 411) end end addEventHandler ( "onClientPlayerVehicleEnter", getRootElement(), enterveh ) Server function permission (player) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then setElementData(player,"sha",true) end end addEventHandler("onPlayerVehicleEnter",root,permission) >~<
  7. It's server side? Show meta
  8. function permission (player) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then end end addEvent("check",true) addEventHandler("check",root,permission) ლ(ಠ益ಠ)ლ damn
  9. Client function enterveh () triggerServerEvent("check",localPlayer) txd = engineLoadTXD("infernus.txd", 411 ) engineImportTXD(txd, 411) dff = engineLoadDFF("infernus.dff", 411 ) engineReplaceModel(dff, 411) else outputChatBox("Only acl admin have shader", 0, 255, 0, false) end addEventHandler ( "onClientPlayerVehicleEnter", getRootElement(), enterveh ) Server function lol(thePlayer) if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( "Admin" ) ) then end end addEvent("check",true) addEventHandler("check",root,lol)
  10. Your scripting skills 92% awesome local infernus = {[411]=true} addEventHandler ( "onVehicleStartEnter", root, function ( player, seat ) if ( seat == 0 ) then if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Admin" ) ) then local theVehicle = source local vehModel = getElementModel(theVehicle) if (infernus[vehModel]) then return end else cancelEvent ( ) outputChatBox ( "You cannot enter this vehicle,Only Admin can.", player, 255, 0, 0 ) end end end)
  11. function nope(thePlayer) if isPedInVehicle(thePlayer) then cancelEvent() end end addEventHandler("onPlayerPickupHit",root,nope) Server side
  12. he fixed the problem any way thanks!
  13. your server is cool but needs a cool name that makes people join
  14. nope it doesn't save the text.
  15. i have no idea what i'm doing... it's not working local posFile = xmlLoadFile ("req.xml") if not posFile then posFile = xmlCreateFile ("req.xml", "root") end local text local newNode function add() for id, playeritem in ipairs(getElementsByType("player")) do if source == REQ.button[1] then text = guiGetText(REQ.edit[1]) local row = guiGridListAddRow ( REQ.gridlist[1] ) local row2 = guiGridListAddRow ( REQ.gridlist[1] ) if string.len(text) > 0 then if posFile then newNode = xmlCreateChild(posFile, text) if xmlNodeSetValue (newNode, text) then xmlSaveFile(posFile) guiGridListSetItemText ( REQ.gridlist[1], row, 1, getPlayerName ( playeritem ), false, false ) guiGridListSetItemText ( REQ.gridlist[1], row, 2, text, false, false ) end end end end end end addEventHandler("onClientGUIClick",root,add) function save() for id, playeritem in ipairs(getElementsByType("player")) do local rowx = guiGridListAddRow ( REQ.gridlist[1] ) local row2x = guiGridListAddRow ( REQ.gridlist[1] ) guiGridListSetItemText ( REQ.gridlist[1], rowx, 1, getPlayerName ( playeritem ), false, false ) guiGridListSetItemText ( REQ.gridlist[1], row2x, 2, text, false, false ) end end addEventHandler("onClientResourceStart",root,save)
  16. thank you.. but how to save the only 30 last msgs?
  17. hello so i made a chat in the grid list... i want to save the chat like when i type hi and then i reconnect i find the "hi" in the grid :3 so how to do it?
  18. HUNGRY:3

    Editfield.

    viewtopic.php?f=108&t=84376
×
×
  • Create New...