Jump to content

[UCG]Mike

Members
  • Posts

    108
  • Joined

  • Last visited

Everything posted by [UCG]Mike

  1. exports.scoreboard:addScoreboardColumn('Score') addEventHandler ( 'onPlayerWasted', root, function ( attacker ) if ( attacker ) and ( attacker ~= source ) then local sScore = getElementData(source, 'Score') or 0 local aScore = getElementData(attacker, 'Score') or 0 setElementData(source, 'Score', sScore -1) setElementData(attacker, 'Score', aScore +1) end end ) function myscore ( thePlayer ) outputChatBox("Your score is" tostring(getElementData('Score')), thePlayer, 0, 255, 0) end addCommandHandler("myscore", myscore) Right ??
  2. im not a scripter if you can fix it
  3. exports.scoreboard:addScoreboardColumn('Score') addEventHandler ( 'onPlayerWasted', root, function ( attacker ) if ( attacker ) and ( attacker ~= source ) then local sScore = getElementData(source, 'Score') or 0 local aScore = getElementData(attacker, 'Score') or 0 setElementData(source, 'Score', sScore -1) setElementData(attacker, 'Score', aScore +1) end end ) function myscore ( thePlayer ) outputChatBox("Your score is"..getElementData..(source, 'Score'), thePlayer, 0, 255, 0) end addCommandHandler("myscore", myscore) any fix plzz
  4. [UCG]Mike

    How to ...

    hey guys any one tell me how to create IRC Chat with mabbit or give me a video plzz help !!! ....
  5. [UCG]Mike

    Help

    What is that for? And what is the main problem? you are trying to create two jobs? no i want to create one job with 2 Ocuupations and 2 Markers
  6. [UCG]Mike

    Help

    wtf no supporters here
  7. WARNING: Score\server.lua:8: Bad argument @ 'setElementData' [Expected element at argument 1, got number '1']
  8. [UCG]Mike

    Help

    Hey Guys today i want to know how to create other job marker but join to other job with other occupation and im sry for my bad english I WANT : How to create other job to joi to Civilian Workes but with other occuation function createSAPDTeam () PilotTeam = createTeam ("Civilian Workers", 255, 255, 0) end function joincriminal() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then local wlevel = getPlayerWantedLevel( source ) end end addEventHandler ("onResourceStart", resourceRoot, createSAPDTeam) function joinSAPD() setPlayerNametagColor ( source, 255, 255, 0 ) setPlayerTeam(source,PilotTeam) setElementFrozen ( ped, true ) setElementHealth ( ped, 180 ) setElementData( source, "Occupation", "Pilot", true ) setElementData ( source, "Rank", "Federal Agent" ) end addEvent("gov", true) addEventHandler("gov",root,joinSAPD) this is the real job --------------------------------------------------------------------------------------------------------------------------------------------------- function createSAPDTeam () RescuerTeam = createTeam ("Civilian Workers", 255, 255, 0) end function joincriminal() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then local wlevel = getPlayerWantedLevel( source ) end end addEventHandler ("onResourceStart", resourceRoot, createSAPDTeam) function joinSAPD() setPlayerNametagColor ( source, 255, 255, 0 ) setPlayerTeam(source,RescuerTeam) setElementFrozen ( ped, true ) setElementHealth ( ped, 180 ) setElementData( source, "Occupation", "Rescuer Man", true ) setElementData ( source, "Rank", "Federal Agent" ) end addEvent("gov", true) addEventHandler("gov",root,joinSAPD) i want to add this job ti Civilian Workes Job but with Rescuer Man Occupation
  9. ty but see this errors any fix here ?
  10. what is the problem here ??? exports.scoreboard:addScoreboardColumn('Score') addEventHandler("onPlayerWasted", root, function(attacker,attackerweapon) if (getElementData(attacker, "Score") == false) or (getElementData(attacker, "Score") == nil) then setElementData(attacker, "Score", 1) setElementData(source, "Score", -1) else setElementData( attacker, "Score", getElementData(attacker,"Score")+1) setElementData( source, "Score", getElementData(source,"Score")-1) end )
  11. no bro its not work No supporters or Moderators here ?
  12. i want SCORES resource guys who have ?
  13. local marker1 = createMarker(x, z, y, "cylender", 2, 255, 255, 255, 255) function marker1hit ( thePlayer ) outputChatBox ("test", thePlayer, 255, 255, 255) end addEventHandler(onClientMarkerHit, marker1, marker1hit) where is the problem ????
  14. plzz with parts and now what are me do ? now IRC mod started i need to know just how to create channel
  15. -- This parameter specifies the name the server will be visible as in the ingame server browser and on Game-Monitor. It is a required parameter. --> CNG - RPG/CnR/Turfing - Police, Army, Drug City -- ONLY USE THIS PARAMETER IF YOU ARE SURE OF WHAT YOU ARE DOING - it is generally only needed for professional servers and should be left blank otherwise. This parameter specifies the IP to use for servers that have multiple IP addresses. If left blank, it will default to server's standard local IP address. --> 22003 256 1 22005 5 20 [url=https://wiki.multitheftauto.com/wiki/Anti-cheat_guide]https://wiki.multitheftauto.com/wiki/Anti-cheat_guide[/url] e.g. To disable anti-cheat #2 and #3, use: 2,3 --> [url=https://wiki.multitheftauto.com/wiki/Anti-cheat_guide]https://wiki.multitheftauto.com/wiki/Anti-cheat_guide[/url] e.g. To enable special detection #12 use: 12 --> 1 [url=https://wiki.multitheftauto.com/wiki/GetPlayerVersion]https://wiki.multitheftauto.com/wiki/GetPlayerVersion[/url] and look like this: 1.1.0-9.03100.0 Note that this setting only determines if the client should be prompted to update. The actual build number they receive will be the highest available. See: [url=https://nightly.multitheftauto.com/ver]https://nightly.multitheftauto.com/ver[/url] --> 1.3.5-9.06367 1 [url=https://nightly.multitheftauto.com/ver]https://nightly.multitheftauto.com/ver[/url] --> 1 0 -- This parameter reduces the server's bandwidth usage by using various optimizations. Values: none, medium or maximum ; default value: medium --> medium -- The following ???_sync_interval parameters determine the time in milliseconds between certain network packets being sent. More information on how each settings works is available here: https://wiki.multitheftauto.com/wiki/Server_mtaserver.conf --> -- Player sync interval. Default: 100 --> 100 -- Lightweight (player) sync interval. Used when players are far apart. Default: 1500 --> 1500 -- Camera sync interval. Default: 500 --> 500 -- Ped sync interval. Default: 400 --> 500 -- Unoccupied_vehicle sync interval. Default: 400 --> 1000 -- Keysync mouse rotation sync interval. For limiting key sync packets due to mouse movement. Default: 100 --> 100 -- Keysync analog movement sync interval. For limiting key sync packets due to joystick movement. Default: 100 --> 100 -- This parameter can improve the reliability of shots when using certain weapons. However, it uses more bandwidth. Values: 0 - disabled , 1 - enabled ; default value: 1. --> 1 -- This parameter sets the amount of extrapolation that clients will apply to remote vehicles. This can reduce some of the latency induced location disparency by predicting where the remote vehicles will probably be. Depending on the gamemode, an incorrect prediction may have a negative effect. Therefore this setting should be considered experimental. Available range: 0 to 100. Default - 0 --> 0 -- This parameter places a limit on how much time (in milliseconds) the vehicle extrapolation will attempt to compensate for. Only relevant if is greater than zero. Available range: 50 to 500. Default - 150 --> 150 -- This parameter can reduce the delay of player actions appearing on remote clients by 2 frames (approx 50ms). Due to the impact this may have on shot lag compensation, it should be considered experimental. Values: 0 - disabled , 1 - enabled ; default value: 0. --> 0 -- Specifies the location and file name of this servers unique private key. This is used to prevent private files saved on the client from being read by other servers. More infomation about client private files can be found here: [url=https://wiki.multitheftauto.com/wiki/Filepath]https://wiki.multitheftauto.com/wiki/Filepath[/url] Keep a backup of this file in a safe place. Default value: server-id.keys--> server-id.keys -- Specifies the location and name of the main server log file. If left blank, server won't be saving this file. --> logs/server.log -- As well as the main log file, login successes and failures are logged here for easy reviewing of security issues. If left blank, this file is not used --> logs/server_auth.log -- Specifies the location and name of the file used to log database queries. The server command 'debugdb' sets the amount of logging. --> logs/db.log -- Specifies the location and name of the file used to log loadstring function calls. If left blank or not set, no logging is done. --> -- logs/loadstring.log --> -- This parameter specifies the location and name of the Access Control List settings file. If left blank, server will use acl.xml file, located in the same folder as this configuration file. --> acl.xml -- Specifies the location and name of the debugscript log file. If left blank, server won't be saving this file. --> logs/scripts.log -- Specifies the level of the debugscript log file. Available values: 0, 1, 2, 3. When not set, defaults to 0. --> 0 -- Specifies the level of the html debug. Available values: 0, 1, 2, 3. When not set, defaults to 0. --> 0 -- Specifies the frame rate limit that will be applied to connecting clients. Available range: 25 to 100. Default: 36. --> 100 -- Specifies whether or not players should automatically be logged in based on their IP adresses --> 0 -- This parameter specifies whether or not to enable player voice chat in-game Values: 0 - disabled , 1 - enabled --> 0 -- This parameter specifies the sample rate for voice chat. 'voice' parameter must be set to 1 for this to be effective. Higher settings use more bandwidth and increase the sampling quality of voice chat Values: 0 - Narrowband (8kHz), 1 - Wideband (16kHz), 2 - Ultrawideband (32kHz). Default - 1 --> 1 -- This parameter specifies the voice quality for voice chat. 'voice' parameter must be set to 1 for this to be effective. Higher settings use more bandwidth and increase the the overall quality of voice chat Available range: 0 to 10. Default - 4 --> 4 -- Specifies the voice bitrate, in bps. This optional parameter overrides the previous two settings. If not set, MTA handles this automatically. Use with care. --> -- 24600 --> -- This parameter specifies the path to use for a basic backup of some server files. Note that basic backups are only made during server startup. Default value: backups --> backups -- This parameter specifies the number of days between each basic backup. Backups are only made during server startup, so the actual interval may be much longer. Setting backup_interval to 0 will disable backups Available range: 0 to 30. Default - 3 --> 3 -- This parameter specifies the maximum number of backup copies to keep. Setting backup_copies to 0 will disable backups Available range: 0 to 100. Default - 5 --> 5 -- This parameter specifies when the internal sqlite databases should be defragmented. http://www.sqlite.org/lang_vacuum.html Values: 0 - Never, 1 - On server start only after basic backup, 2 - On server start always. Default - 1 --> 1 -- Specifies the module(s) which are loaded with the server. To load several modules, add more parameter(s). Optional parameter. --> -- --> -- --> "ml_sockets" /> -- Specifies resources that are loaded when the server starts and/or which are protected from being stopped. To specify several resources, add more parameter(s). --> "admin" startup="1" protected="0" /> "defaultstats" startup="1" protected="0" /> "helpmanager" startup="1" protected="0" /> "joinquit" startup="1" protected="0" /> "mapcycler" startup="1" protected="0" /> "mapmanager" startup="1" protected="0" /> "parachute" startup="1" protected="0" /> "performancebrowser" startup="1" protected="0" /> "resourcebrowser" startup="1" protected="1" default="true" /> "resourcemanager" startup="1" protected="1" /> "scoreboard" startup="1" protected="0" /> "spawnmanager" startup="1" protected="0" /> "voice" startup="1" protected="0" /> "votemanager" startup="1" protected="0" /> "webadmin" startup="1" protected="0" /> -- play is the default freeroam gamemode. Remove the following line to prevent it from starting. --> "play" startup="1" protected="0" /> and my ml_sockets in ...MTA San Andreas 1.3\server\mods\deathmatch\modules\directory but dont work
  16. [UCG]Mike

    Help ~ IRC

    why when i do /start irc dont work and im add modules ?
  17. i want to edit this job by groups and now i cant open it
  18. hey guys i need help when i die i lost all my weapons i need any mod or script to stop it
  19. ye if you can fix this Gui plz
  20. local marker = createMarker ( 125.49031829834, 1931.8468017578, 18.240268707275, "cylinder", 2, 24, 60, 3 ) myFont = dxCreateFont( "SF Automaton Bold.ttf", 20 ) -- Create custom font GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_gridlist = {} windowjob = guiCreateWindow(392, 176, 408, 437, "CNG ~ Military Forces", false) guiWindowSetSizable(windowjob, false) guiSetVisible(windowjob, false) GUIEditor_Memo[1] = guiCreateMemo(18, 30, 362, 221, "", false, windowjob) guiMemoSetReadOnly(GUIEditor_Memo[1], true) GUIEditor_gridlist[1] = guiCreateGridList(21, 264, 359, 115, false, windowjob) guiGridListAddColumn(GUIEditor_gridlist[1], "ID", 0.5) guiGridListAddColumn(GUIEditor_gridlist[1], "Skin Name", 0.5) for i = 1, 5 do guiGridListAddRow(GUIEditor_gridlist[1]) end guiGridListSetItemText(GUIEditor_gridlist[1], 0, 1, "287", false, false) guiGridListSetItemText(GUIEditor_gridlist[1], 0, 2, "Army", false, false) guiGridListSetItemText(GUIEditor_gridlist[1], 1, 1, "191", false, false) guiGridListSetItemText(GUIEditor_gridlist[1], 1, 2, "Helena Wankstein", false, false) guiGridListSetItemText(GUIEditor_gridlist[1], 2, 1, "73", false, false) guiGridListSetItemText(GUIEditor_gridlist[1], 2, 2, "Hippy", false, false) guiGridListSetItemText(GUIEditor_gridlist[1], 3, 1, "179", false, false) guiGridListSetItemText(GUIEditor_gridlist[1], 3, 2, "Ammunation Salesman", false, false) GUIEditor_Button[1] = guiCreateButton(21, 379, 175, 48, "Take job !", false, windowjob) GUIEditor_Button[2] = guiCreateButton(206, 379, 174, 48, "Cancel", false, windowjob) function SAPDjob(hitElement) if getElementData (source, "NameGroup") == "Military Forces" then setElementData ( localPlayer, "ownskin", getElementModel (localPlayer) ) if getElementType(hitElement) == "player" and (hitElement == localPlayer) then if not guiGetVisible(windowjob) then guiSetVisible(windowjob, true) showCursor(true) end end end end addEventHandler("onClientMarkerHit", join, SAPDjob) addEventHandler("onClientMarkerHit", join1, SAPDjob) addEventHandler("onClientMarkerHit", join2, SAPDjob) addEventHandler("onClientMarkerHit", join3, SAPDjob) addEventHandler("onClientMarkerHit", join4, SAPDjob) function FBIjobleave(leaveElement) if getElementType(leaveElement) == "player" and (leaveElement == localPlayer) then if guiGetVisible(windowjob) then guiSetVisible(windowjob, false) showCursor(false) end end end addEventHandler("onClientMarkerLeave", marker, SAPDjobleave) function setskintest() local skin = guiGridListGetItemText ( GUIEditor_gridlist[1], guiGridListGetSelectedItem ( GUIEditor_gridlist[1] ), 1 ) setElementModel ( localPlayer, skin ) end addEventHandler ( "onClientGUIClick", GUIEditor_gridlist[1], setskintest, false ) function joinTeam() triggerServerEvent("MF",localPlayer) local skin = guiGridListGetItemText ( GUIEditor_gridlist[1], guiGridListGetSelectedItem ( GUIEditor_gridlist[1] ), 1 ) if skin ~= 0 or getElementData(localPlayer, "ownskin") then guiSetVisible(windowjob, false) showCursor(false) setElementModel ( localPlayer, skin ) else exports["TopBarChat"]:sendClientMessage ("You didn't select a Skin", 255, 0, 0 ) end end addEventHandler("onClientGUIClick", GUIEditor_Button[1] , joinTeam, false) function removeSAPDWindow() guiSetVisible(windowjob, false) showCursor(false) setElementModel(localPlayer, getElementData(localPlayer, "ownskin")) end addEventHandler("onClientGUIClick", GUIEditor_Button[2] , removeSAPDWindow, false) see it its not work
×
×
  • Create New...