-
Posts
96 -
Joined
-
Last visited
Everything posted by LasHa
-
@IIYAMA yeah i would cry if somebody stole my Idea because i have been thinking about it whole year and thanks for showing the section
-
Hello! The New Evolution has been started... I, with my great team that isn't complete yet, 'm going to make a project that has never been talked yet in MTA. I'm going to share just some things, so the project won't be stolen. Some of you know Darhal Omar - The great scripter - He is in my team. I'm not even going to tell you the name of new Gamemode. because its name already tells you everything about the Gamemode. Just a few things to know about the project: Castles, Towers, Dragons, Medieval things, Every car changed to phaetons, Every gun changed to Bows/Crossbows/Cannons, Gold Storage in every castle... With many other features By COK Team. We're looking for scripters/mappers/photoshoppers. But the most scripters because we have to work really hard on it. ©Lasha Gabashvili ©Omar C'h If anyone's going to steal my project, i'm deeply sure i'll report him on every forum of MTA, to provide a benefit of fair punishment. For them who're going to join us: Skype: lasha1375 - darhal.omar1 Facebook: https://www.facebook.com/lasha.gabashvili - https://www.facebook.com/darhal.omar?fref=ts Telephone: +995597808002
-
Hello guys! Our scripting team decided to make an unique gamemode and make a grand opening of server. Just a little bit problem, we don't have any mapper/photoshopper or modder to help us finish it. If you've got skills more than 7/10 Please help us. Any kind of help will be the highest for us. Wish you will be with us. Contact ifno Skype: lasha1375 - darhal.omar1 Facebook: https://facebook.com/lasha.gabashvili - https://facebook.com/profile.php?id=100007229808322 Thanks.
-
i think you need to add new button in Group Gui. When player is going to create a group he need to choose which kind of group he is going to do like "Civilian" "Police" or "Criminal" or as you wish "Gang". after that you need to save somehow that group type is Gang and all players got from that type can't enter in police.
-
you can also add your scoreboard on CCS and contact it with Arenas do you get what i mean? and also an userpanel contacted with CCS
-
Topred i love your login panel and please can you add this login panel in ccs? for example for first we need to access with login panel and if we join with account or as a guest in the server then open lobby? please please
-
I am surely wait for the new version but i don't want to wait the rest of my life on that script so can it come faster?
-
Dude why won't you? 90% of community script users want to re-edit it and add something new. or maybe most of them just don't like a thing and want to remove it. you must let them feel free to do any other way you lose 60% of users. You can just write in script not to remove credits. and maybe about 70% of them won't remove credits. Please do that and update new decompiled version on community
-
Wow better than I expected. Really good job man. keep it up
-
Good Job bro. Great edit for that script. but if we need to add or delete arenas what can we do? it's good that you want to save your design on it. But please we need more or lower arenas please add decompiled version of lobby.luac
-
didn't save after restart script. nor colors neither this twice entered.
-
local TimeTable = {} local waitTime = 3000 -- 3 seconds local Blips = {} local details = {} local Entred = {} local Markers = { {522, 1986, -1478.1, 21.5, 17.500, "Sonix #1"}, -- Marker 1 {522, 1114, -1822, 33.5, 17.500,"Sonix #2"}, -- Marker 2 {522, 776.8, -1036, 39.5, 9000,"StantName Here"}, -- Marker 3 {522, 1313, -1163, 41, 7500,"StantName Here"}, -- Marker 4 {522, 1404, -806, 85, 7500,"StantName Here"}, -- Marker 5 {522, 775.7, -1060.5, 33.2, 5000,"StantName Here"}, -- Marker 6 } for i , v in pairs (Markers) do HitMarker = createMarker ( v[2], v[3], v[4], "corona", 1.20, 255, 0, 0, 255 ) Blips[HitMarker] = createBlipAttachedTo( HitMarker, 0 ) details[HitMarker] = {v[1],v[5],v[6]} end function allowedVehicles( hitElement, matchingDimension ) if matchingDimension and isElement(hitElement) and getElementType(hitElement) == "player" then if isPedInVehicle ( hitElement ) then local vehicle = getPedOccupiedVehicle ( hitElement ) if vehicle then if Entred[hitElement] == source then outputChatBox("Sorry you can't enter the marker twice" , hitElement,255,0,0) return end theTable = details[source] if (theTable) then model, cash, name = details[source][1], details[source][2], details[source][3] if getElementModel ( vehicle ) == model then TimeTable[hitElement] = setTimer(StuntComplete, waitTime, 1, hitElement,source) setElementData ( hitElement, "entered.marker", true ) Entred[hitElement] = source else outputChatBox ( "You have entered in Stunt with wrong vehicle", hitElement, 255, 0, 0 ) end end end end end end addEventHandler( "onMarkerHit", resourceRoot, allowedVehicles ) function StuntComplete (player,marker) if isElement ( player ) then if getElementData ( player, "entered.marker" ) then givePlayerMoney ( player, tonumber(cash)) outputChatBox ( "You have completed the Stunt and earned "..tonumber(cash).."$", player, 0, 255, 0 ) if isElement( Blips[marker] ) then setBlipColor ( Blips[marker], 0, 255, 0, 255 ) setMarkerColor (marker,0, 255, 0, 255 ) end local playerAccount = getPlayerAccount ( player ) if ( playerAccount ) and not isGuestAccount ( playerAccount ) then local totalStunts = getAccountData ( playerAccount, "totalStunts" ) or 0 getAccountData( playerAccount, "totalStunts" , tonumber(totalStunts)+1) local blipColor = getBlipColor ( Blips[marker] ) setAccountData ( playerAccount, "Blip.Color", blipColor ) local markerColor = getMarkerColor ( marker ) setAccountData ( playerAccount, "Marker.Color", markerColor ) end end end end addEventHandler ( "onMarkerLeave", resourceRoot, function ( leaveElement ) if ( isElement ( leaveElement ) and getElementType ( leaveElement ) == "player" ) then setElementData ( leaveElement, "entered.marker", false ) outputChatBox("You failed the Stunt!", leaveElement, 255, 0, 0) end end ) function stuntsFinished ( player ) if isElement(player) then local playerAccount = getPlayerAccount ( player ) if ( playerAccount ) and not isGuestAccount ( playerAccount ) then local count = getAccountData( playerAccount, "totalStunts" ) or 0 outputChatBox( "You have finished "..tonumber(count).."/512 Stunts", player, 0, 255, 0) end end end addCommandHandler("fstunts", stuntsFinished) function savedStunts ( marker ) local playerAccount = getPlayerAccount(source) if (playerAccount) then local BlipColor = getAccountData ( playerAccount, "Blip.Color", true ) if (BlipColor) then setBlipColor ( Blips[marker], 0, 255, 0, 255 ) local MarkerColor = getAccountData ( playerAccount, "Marker.Color", true ) if (MarkerColor) then setMarkerColor ( marker, 0, 255, 0, 255 ) end end end end addEventHandler ( "onResourceStart", resourceRoot, savedStunts )
-
i said in the last post i wrote code and posted it if you want i will post it again
-
okay thats totalstunts but marker and blip colors? save?
-
okay #1 i changed ElementData of totalStunts to AccountData and it doesn't work no errors or things i did like that local playerAccount = getPlayerAccount ( player ) if ( playerAccount ) and not isGuestAccount ( playerAccount ) then local totalStunts = getAccountData ( playerAccount, "totalStunts" ) or 0 getAccountData( playerAccount, "totalStunts" , tonumber(totalStunts)+1) -- added this in StuntComplete function stuntsFinished ( player ) if isElement(player) then local playerAccount = getPlayerAccount ( player ) if ( playerAccount ) and not isGuestAccount ( playerAccount ) then local count = getAccountData( playerAccount, "totalStunts" ) or 0 outputChatBox( "You have finished "..tonumber(count).."/512 Stunts", player, 0, 255, 0) end end end addCommandHandler("fstunts", stuntsFinished) #2 i did blip colors in AccountData but doesn't work it looks like that local blipColor = getBlipColor ( Blips[marker] ) setAccountData ( playerAccount, "Blip.Color", blipColor ) local markerColor = getMarkerColor ( marker ) setAccountData ( playerAccount, "Marker.Color", markerColor ) --added this in StuntComplete too. function savedStunts ( marker ) local playerAccount = getPlayerAccount(source) if (playerAccount) then local BlipColor = getAccountData ( playerAccount, "Blip.Color", true ) if (BlipColor) then setBlipColor ( Blips[marker], 0, 255, 0, 255 ) local MarkerColor = getAccountData ( playerAccount, "Marker.Color", true ) if (MarkerColor) then setMarkerColor ( marker, 0, 255, 0, 255 ) end end end end addEventHandler ( "onResourceStart", resourceRoot, savedStunts ) i have done everything i wanted but nothing works now please help me #3 full code looks like that local TimeTable = {} local waitTime = 3000 -- 3 seconds local Blips = {} local details = {} local Entred = {} local Markers = { {522, 1986, -1478.1, 21.5, 17.500, "Sonix #1"}, -- Marker 1 {522, 1114, -1822, 33.5, 17.500,"Sonix #2"}, -- Marker 2 {522, 776.8, -1036, 39.5, 9000,"StantName Here"}, -- Marker 3 {522, 1313, -1163, 41, 7500,"StantName Here"}, -- Marker 4 {522, 1404, -806, 85, 7500,"StantName Here"}, -- Marker 5 {522, 775.7, -1060.5, 33.2, 5000,"StantName Here"}, -- Marker 6 } for i , v in pairs (Markers) do HitMarker = createMarker ( v[2], v[3], v[4], "corona", 1.20, 255, 0, 0, 255 ) Blips[HitMarker] = createBlipAttachedTo( HitMarker, 0 ) details[HitMarker] = {v[1],v[5],v[6]} end function allowedVehicles( hitElement, matchingDimension ) if matchingDimension and isElement(hitElement) and getElementType(hitElement) == "player" then if isPedInVehicle ( hitElement ) then local vehicle = getPedOccupiedVehicle ( hitElement ) if vehicle then if Entred[hitElement] == source then outputChatBox("Sorry you can't enter the marker twice" , hitElement,255,0,0) return end theTable = details[source] if (theTable) then model, cash, name = details[source][1], details[source][2], details[source][3] if getElementModel ( vehicle ) == model then TimeTable[hitElement] = setTimer(StuntComplete, waitTime, 1, hitElement,source) setElementData ( hitElement, "entered.marker", true ) Entred[hitElement] = source else outputChatBox ( "You have entered in Stunt with wrong vehicle", hitElement, 255, 0, 0 ) end end end end end end addEventHandler( "onMarkerHit", resourceRoot, allowedVehicles ) function StuntComplete (player,marker) if isElement ( player ) then if getElementData ( player, "entered.marker" ) then givePlayerMoney ( player, tonumber(cash)) outputChatBox ( "You have completed the Stunt and earned "..tonumber(cash).."$", player, 0, 255, 0 ) if isElement( Blips[marker] ) then setBlipColor ( Blips[marker], 0, 255, 0, 255 ) setMarkerColor (marker,0, 255, 0, 255 ) end local playerAccount = getPlayerAccount ( player ) if ( playerAccount ) and not isGuestAccount ( playerAccount ) then local totalStunts = getAccountData ( playerAccount, "totalStunts" ) or 0 getAccountData( playerAccount, "totalStunts" , tonumber(totalStunts)+1) local blipColor = getBlipColor ( Blips[marker] ) setAccountData ( playerAccount, "Blip.Color", blipColor ) local markerColor = getMarkerColor ( marker ) setAccountData ( playerAccount, "Marker.Color", markerColor ) end end end end addEventHandler ( "onMarkerLeave", resourceRoot, function ( leaveElement ) if ( isElement ( leaveElement ) and getElementType ( leaveElement ) == "player" ) then setElementData ( leaveElement, "entered.marker", false ) outputChatBox("You failed the Stunt!", leaveElement, 255, 0, 0) end end ) function stuntsFinished ( player ) if isElement(player) then local playerAccount = getPlayerAccount ( player ) if ( playerAccount ) and not isGuestAccount ( playerAccount ) then local count = getAccountData( playerAccount, "totalStunts" ) or 0 outputChatBox( "You have finished "..tonumber(count).."/512 Stunts", player, 0, 255, 0) end end end addCommandHandler("fstunts", stuntsFinished) function savedStunts ( marker ) local playerAccount = getPlayerAccount(source) if (playerAccount) then local BlipColor = getAccountData ( playerAccount, "Blip.Color", true ) if (BlipColor) then setBlipColor ( Blips[marker], 0, 255, 0, 255 ) local MarkerColor = getAccountData ( playerAccount, "Marker.Color", true ) if (MarkerColor) then setMarkerColor ( marker, 0, 255, 0, 255 ) end end end end addEventHandler ( "onResourceStart", resourceRoot, savedStunts )
-
idk where to use or ehere to get it please this is the last what i need in this account system
-
hey it works but as i told you after script was restarted or after i did reconnect nor blip color green neither marker color green was saved only that saved that i entered marker
-
this is equal that you wrote a post before mine? i have already checked it and there were many problems. as i said it writes You have entered in the Stunt with wrong vehicle and in the first enter i can't get money too. and if i reconnect or restart script will it save my details? like if i have completed stunt the marker or blip color will be saved? or the details that i have already entered will be saved?
-
it writes You have entered in the Stunt with wrong vehicle in any marker if i enter and also i wanted with account system because ElementData won't save all the things like marker and blip color can you do it with AccountData pleasE? please please. from this code local TimeTable = {} local waitTime = 3000 -- 3 seconds local Blips = {} local Markers = { {522, 1986, -1478.1, 21.5, 17.500, "StantName Here"}, -- Marker 1 {522, 1114, -1822, 33.5, 17.500,""}, -- Marker 2 {522, 776.8, -1036, 39.5, 9000,""}, -- Marker 3 {522, 1313, -1163, 41, 7500,""}, -- Marker 4 {522, 1404, -806, 85, 7500,""}, -- Marker 5 {522, 775.7, -1060.5, 33.2, 5000,""}, -- Marker 6 } for i , v in pairs (Markers) do HitMarker = createMarker ( v[2], v[3], v[4], "corona", 1.20, 255, 0, 0, 255 ) Blips[HitMarker] = createBlipAttachedTo( HitMarker, 0 ) setElementData ( HitMarker, "model", v[1] ) setElementData ( HitMarker, "cash", v[5] ) setElementData ( HitMarker, "markerName", v[6] ) end function allowedVehicles( hitElement, matchingDimension ) if matchingDimension and isElement(hitElement) and getElementType(hitElement) == "player" then if isPedInVehicle ( hitElement ) then local vehicle = getPedOccupiedVehicle ( hitElement ) if vehicle then if getElementModel ( vehicle ) == getElementData ( source, "model" ) then TimeTable[hitElement] = setTimer(StuntComplete, waitTime, 1, hitElement,source) setElementData ( hitElement, "entered.marker", true ) else outputChatBox ( "You have entered in Stunt with wrong vehicle", hitElement, 255, 0, 0 ) end end end end end addEventHandler( "onMarkerHit", resourceRoot, allowedVehicles ) function StuntComplete ( player,marker) if isElement ( player ) then if getElementData ( player, "entered.marker" ) then givePlayerMoney ( player, tonumber(getElementData (marker, "cash"))) outputChatBox ( "You have completed the Stunt and earned "..tonumber(getElementData (marker, "cash")).."$", player, 0, 255, 0 ) if isElement( Blips[marker] ) then setBlipColor ( Blips[marker], 0, 255, 0, 255 ) setMarkerColor (marker,0, 255, 0, 255 ) end local totalStunts = getElementData( player, "totalStunts" ) or 0 setElementData( player, "totalStunts" , tonumber(totalStunts)+1) end end end addEventHandler ( "onMarkerLeave", resourceRoot, function ( leaveElement ) if ( isElement ( leaveElement ) and getElementType ( leaveElement ) == "player" ) then setElementData ( leaveElement, "entered.marker", false ) outputChatBox("You failed the Stunt!", leaveElement, 255, 0, 0) end end ) function stuntsFinished ( player ) if isElement(player) then local count = getElementData( player, "totalStunts" ) or 0 outputChatBox( "You have finished "..tonumber(count).."/512 Stunts", player, 0, 255, 0) end end addCommandHandler("fstunts", stuntsFinished) and can you test it if you have your local server please?
-
thank you works :* can you help me add v[6]? and also how to permit players enter marker second time? i mean can we setAccountData after complete stunt and it will check if player hasn't this stunt yet? please please
-
Walid tried but after stunt complete i get the same error: attempt to perform arithmetic on a nil value and after writing command /fstunts i got the same error: attempt to concatenate a nil value
-
Hello guys! i asked in forums for many things and i got many answers. one of questions was about markers and in the markers there was setElementData i used the same way to setElementData but mine one wasn't working why? i will show you whole code and after that whole code + my ElementData here is the working code local TimeTable = {} local waitTime = 3000 -- 3 seconds local Blips = {} local Markers = { {522, 1986, -1478.1, 21.5, 17.500}, -- Marker 1 {522, 1114, -1822, 33.5, 17.500}, -- Marker 2 {522, 776.8, -1036, 39.5, 9000}, -- Marker 3 {522, 1313, -1163, 41, 7500}, -- Marker 4 {522, 1404, -806, 85, 7500}, -- Marker 5 {522, 775.7, -1060.5, 33.2, 5000}, -- Marker 6 } for i , v in pairs (Markers) do HitMarker = createMarker ( v[2], v[3], v[4], "corona", 1.20, 255, 0, 0, 255 ) Blips[HitMarker] = createBlipAttachedTo( HitMarker, 0 ) setElementData ( HitMarker, "model", v[1] ) setElementData ( HitMarker, "cash", v[5] ) setElementData ( HitMarker, "markerName", v[6] ) end function allowedVehicles( hitElement, matchingDimension ) if matchingDimension and isElement(hitElement) and getElementType(hitElement) == "player" then if isPedInVehicle ( hitElement ) then local vehicle = getPedOccupiedVehicle ( hitElement ) if vehicle then if getElementModel ( vehicle ) == getElementData ( source, "model" ) then TimeTable[hitElement] = setTimer(StuntComplete, waitTime, 1, hitElement,source) setElementData ( hitElement, "entered.marker", true ) else outputChatBox ( "You have entered in Stunt with wrong vehicle", hitElement, 255, 0, 0 ) end end end end end addEventHandler( "onMarkerHit", resourceRoot, allowedVehicles ) function StuntComplete ( player,marker) if isElement ( player ) then if getElementData ( player, "entered.marker" ) then givePlayerMoney ( player, tonumber(getElementData (marker, "cash"))) outputChatBox ( "You have completed the Stunt and earned "..tonumber(getElementData (marker, "cash")).."$", player, 0, 255, 0 ) if isElement( Blips[marker] ) then setBlipColor ( Blips[marker], 0, 255, 0, 255 ) end setMarkerColor (marker,0, 255, 0, 255 ) end end end addEventHandler ( "onMarkerLeave", resourceRoot, function ( leaveElement ) if ( isElement ( leaveElement ) and getElementType ( leaveElement ) == "player" ) then setElementData ( leaveElement, "entered.marker", false ) outputChatBox("You failed the Stunt!", leaveElement, 255, 0, 0) end end ) i tried to add this in the code at the function StuntComplete local totalStunts = getElementData( player, "totalStunts" ) setElementData( HitMarker, "totalStunts" +1) and this function stuntsFinished ( player ) outputChatBox( "You have finished "..tonumber(getElementData( player, "totalStunts" )).."/512 Stunts", player, 0, 255, 0) end addCommandHandler("fstunts", stuntsFinished) and the full code after it looks like that local TimeTable = {} local waitTime = 3000 -- 3 seconds local Blips = {} local Markers = { {522, 1986, -1478.1, 21.5, 17.500}, -- Marker 1 {522, 1114, -1822, 33.5, 17.500}, -- Marker 2 {522, 776.8, -1036, 39.5, 9000}, -- Marker 3 {522, 1313, -1163, 41, 7500}, -- Marker 4 {522, 1404, -806, 85, 7500}, -- Marker 5 {522, 775.7, -1060.5, 33.2, 5000}, -- Marker 6 } for i , v in pairs (Markers) do HitMarker = createMarker ( v[2], v[3], v[4], "corona", 1.20, 255, 0, 0, 255 ) Blips[HitMarker] = createBlipAttachedTo( HitMarker, 0 ) setElementData ( HitMarker, "model", v[1] ) setElementData ( HitMarker, "cash", v[5] ) setElementData ( HitMarker, "markerName", v[6] ) end function allowedVehicles( hitElement, matchingDimension ) if matchingDimension and isElement(hitElement) and getElementType(hitElement) == "player" then if isPedInVehicle ( hitElement ) then local vehicle = getPedOccupiedVehicle ( hitElement ) if vehicle then if getElementModel ( vehicle ) == getElementData ( source, "model" ) then TimeTable[hitElement] = setTimer(StuntComplete, waitTime, 1, hitElement,source) setElementData ( hitElement, "entered.marker", true ) else outputChatBox ( "You have entered in Stunt with wrong vehicle", hitElement, 255, 0, 0 ) end end end end end addEventHandler( "onMarkerHit", resourceRoot, allowedVehicles ) function StuntComplete ( player,marker) if isElement ( player ) then if getElementData ( player, "entered.marker" ) then givePlayerMoney ( player, tonumber(getElementData (marker, "cash"))) outputChatBox ( "You have completed the Stunt and earned "..tonumber(getElementData (marker, "cash")).."$", player, 0, 255, 0 ) if isElement( Blips[marker] ) then setBlipColor ( Blips[marker], 0, 255, 0, 255 ) setMarkerColor (marker,0, 255, 0, 255 ) local totalStunts = getElementData( player, "totalStunts" ) setElementData( HitMarker, "totalStunts" +1) end end end end addEventHandler ( "onMarkerLeave", resourceRoot, function ( leaveElement ) if ( isElement ( leaveElement ) and getElementType ( leaveElement ) == "player" ) then setElementData ( leaveElement, "entered.marker", false ) outputChatBox("You failed the Stunt!", leaveElement, 255, 0, 0) end end ) function stuntsFinished ( player ) outputChatBox( "You have finished "..tonumber(getElementData( player, "totalStunts" )).."/512 Stunts", player, 0, 255, 0) end addCommandHandler("fstunts", stuntsFinished) an error says: #1 Attempt to perform arithmetic on a string value #2 Attempt to concetante a nil value also help in this i want to add v[6] {v[1]VehicleModel, v[2]X, v[3]Y, v[4]Z, v[5]Cash, v[6]StuntName} help me to add it and after player complete the stunt he get texts like that: "You completed v[6] - v[5] " example: You completed Vinewoods One - 7,500$
-
dude i'm going to use this simple script on my own server thats why i don't want others to have this
