-
Posts
524 -
Joined
-
Last visited
Everything posted by UAEpro
-
see my edit and also as h1ama3d said .. you can give the element or object some Velocity
-
أحلى حمودي يساعد ض1 ----- yes .. using jump script and lets the gravity play when he reach the top point. i sow in many maps they got jump script ^^ like onClientMarkerHit local oldp function example() oldp = getElementPosition if oldp ~= oldp+10 then setElementPosition(element,oldp+1) example2() end end function example2() newp = getElementPosition if newp ~= oldp+10 then setElementPosition(element,newp+1) example2() end end this is simple jump script by me .. to know the idea .. you need to edit it so if the element was at x speed when he jump .. he will jump like parabola
-
in line #12 outputChatBox("This map has #00FF00 ".. result[1].ratingLike .." Likes", g_Root, 225, 170, 90, true) in the chat box i sow 0 Likes ^^ and yes there is a table i edit the table and make the like 5 and i got like 5 in the chatbox so everything is ok up edit : 5 likes in all maps >.< WTF edit: now i know where the error edit FIXED Everyting
-
i know what is the problem result[1]["ratingLike"] i think = nil
-
my Table was executeSQLCreateTable ( "MapName2","map_name TEXT,ratingLike INTEGER, ratingUnlike INTEGER" ) so i edit the line local result = executeSQLQuery("SELECT ratingLike FROM MapName2 WHERE mapName='".. tostring(mapName) .."'") but also i got error attempt to index field '?' ( a nil value) line 19 line 19 = local update = result[1]["ratingLike"] +1 function addlike() local result = executeSQLQuery("SELECT ratingLike FROM MapName2 WHERE map_name='".. tostring(mapName) .."'") local update = result[1]["ratingLike"] +1 executeSQLUpdate ( "MapName2", "ratingLike = '".. update .."'","map_name = '" .. tostring(mapName) .. "'") end addCommandHandler ( "like", addlike ) --------------- function addunlike() local result = executeSQLQuery("SELECT ratingUnLike FROM MapName2 WHERE map_name='".. tostring(mapName) .."'") local update = result[1]["ratingUnLike"] +1 executeSQLUpdate ( "MapName2", "ratingUnLike = '".. update .."'","map_name = '" .. tostring(mapName) .. "'") end addCommandHandler ( "unlike", addunlike )
-
FIXED Everyting الحين بيي حمودي يقول .. وش تبرمج ض1
-
or you just can Double click to votemanager in the admin panel and disable votekick
-
small question can i know what is _G ??
-
ok c-side use Solidsnake14 c-side >> down s-side function GiveWeapon2 ( hitElement ) giveWeapon ( hitElement, 3, 1, true ) giveWeapon ( hitElement, 22, 148, true ) giveWeapon ( hitElement, 29, 64, true ) giveWeapon ( hitElement, 25, 10, true ) end addEvent( "GiveWeapon", true ) addEventHandler ( "GiveWeapon", getRootElement(), GiveWeapon2)
-
this will work ( i think ) client-side ^^ Police = createTeam("Police", 0, 0, 255) -- this will create the team everytime the teamMarker = createMarker(1553.33, -1677.37, 15, 'cylinder', 1.5, 0, 0, 255, 150 ) policeWindow = guiCreateWindow ( 0, 0, 0.5, 0.4, "Police Application",true) guiSetVisible ( policeWindow, false ) function teamMarkerHit( hitElement, matchingDimension ) if getElementType( hitElement ) == "player" and not isPedInVehicle(hitElement) then if getPlayerTeam (hitElement) == Police then outputChatBox("Steven: You are already employed by this department.", hitElement) else guiSetVisible ( policeWindow, true ) setPlayerTeam ( hitElement, Police) setPlayerSkin( hitElement, 280) giveWeapon ( hitElement, 3, 1, true ) giveWeapon ( hitElement, 22, 148, true ) giveWeapon ( hitElement, 29, 64, true ) giveWeapon ( hitElement, 25, 10, true ) end end end addEventHandler( "onClientMarkerHit", teamMarker , teamMarkerHit )
-
i sold many script and if you want to sell don't sell to anyone or for people without any good server.
-
lol i bet you there is more Arabs players then any language ( Except English )
-
Thats What i want .. Thank you ^.^
-
hello instade i wrote if lang == ar then lang = Arabic elseif lang == en then lang = English elseif lang == fr then lang = France end can i make like a table ( i know i can but how ) for example lang = { "ar" == "Arabic", } how i could make it ?
-
hey .. Ghosts server ready to buy maps from you if you sell Contact me .. UAEpro (owner) [email protected]
-
there is download link in arabic forum http://www.4shared.com/file/QYRmxn4m/admin.html
-
worked .. << when i test it before the image was in jpg but i wrote png >.<
-
but ... where i put this .. in meta or lua ? if in meta .. what i will write in lua .. ? i tried many things but it didn't work
-
maybe it wasn't working or i didn't put it right ..
-
[FUNCTIONS] File Read System v1.0 - War Of Empire -
UAEpro replied to laserlaser's topic in Scripting
--[[ Created by Ozan Tartar Cooker-X a.k.a laserlaser -| Bikers! War Of Empire LUA Team File Read System v1.0 ]] -- file_Create function file_Create(filename) return fileCreate(filename) end -- file_Open function file_Open(filename) return fileOpen(filename) end -- file_Write function file_Write(filename,string1,...) local args = {...} local file = file_Open(filename) if file then if args then fileWrite(file,string1,unpack(args)) else fileWrite(file,string1) end fileClose(file) end end -- file_Read function file_Read(filename) local file = file_Open(filename) local buffer = nil if (file) then buffer ='' while not fileIsEOF(file) do buffer = buffer..fileRead(file, 500) end fileClose(file) end return buffer end -- file_Get function file_Get(filename,param) local myBuffer = file_Read(filename) local myValue = nil if ( myBuffer ~= nil ) then for k, v in string.gmatch(myBuffer, "([%w]+)=([%w]+)") do if k==param then myValue=v end end if (myValue ~= nil) then return myValue else return nil end else return nil end end -- file_Set function file_Set(filename,param,value) local myBuffer = file_Read(filename) local isEOF = true local myBuffer1={} if myBuffer ~= nil then local count=1 for k, v in string.gmatch(myBuffer, "(%w+)=(%w+)") do if k==param then myBuffer1[count]=k.."="..value.."\n" isEOF=false else myBuffer1[count]=k.."="..v.."\n" end count = count+1 end if isEOF==true then myBuffer1[count]=param.."="..value.."\n" end local file = file_Open(filename) if file then fileWrite(file,unpack(myBuffer1)) fileClose(file) else return nil end else return nil end end -- file_IsEOF function file_IsEOF(filename) local file = file_Open(filename) if file then local iseof = fileIsEOF(file) fileClose(file) return iseof else return nil end end -- file_Delete function file_Delete(filename) return fileDelete(filename) end -- file_Close function file_Close(fileHandler) return fileClose(fileHandler) end -- file_Exists function file_Exists(filename) return fileExists(filename) end -- file_Size function file_Size(filename) local file=file_Open(filename) if file then local size = fileGetSize(file) file_Close(file) return size else return 0 end end -- file_Flush function file_Flush(fileHandler) return file_Flush(fileHandler) end -- Short fcreate = file_Create fopen = file_Open fwrite = file_Write fread = file_Read fget = file_Get fset = file_Set fisEOF = file_IsEOF fdelete = file_Delete fclose = file_Close fexists = file_Exists fsize = file_Size fflush = file_Flush thank you ^^ -
setAccountData getAccountData i mean you send what you need to server side than save it in account data then onPlayerLogin getAccountData and re send it to client ... ^^
-
Hi i got a question, and i am looking for the answer ^.^ Can i use in my resource an image in another resource .. like for example i got my clan name ( as image ) i don't want client to re download them because i will use it in 2 resource or maybe more ... so .. can i ?
-
[bug] Cant ZAP << my best function
-
that what i want to do .. to make LUA files Un decompilable
