
G-Stefan
Members-
Posts
205 -
Joined
-
Last visited
Everything posted by G-Stefan
-
Incearca sa simulezi economia Romaniei Exemple: Salariu politist - 2.500 lei/h Salariu gunoier - 100 lei/tura Masina(Admiral) - 3.000 lei Masina(Infernus) - 100.000 lei Apartament - 40.000 lei etc...
-
Fain,chiar imi place ideea si ca ati facut un gm de la 0
-
De cand lucrati la gamemode?
-
Hi Ransom,could you please pick a moderator?More and more users come here and there is nobody to lead us Hope ya see the message and restart the vote again
-
====DevBlog I==== Decorarea orasului San Fierro +Adaugat in 17.08.2016 Complex apartamente + Parcare Vezi poze aici Partea de scripting +Adaugat in 17.08.2016 Sitem de logare si inregistrare(Inspirat din MTA si putin din sistemul lui Simple) Vezi poze aici ====Progresul total al serverului==== ======================================== Va multumim pentru atentia acordata si asteptam parerile voastre ~Echipa Serverului
-
De ce l-ai anulat?Lipsa de fonduri?
-
De ce nu ar face-0? :d
-
Partea dx/gui e cea mai usoara Daca vrea sa faca si free world trebuie sa refaca gm-ul de la 0 Trebuie sa faca garje de tunning cu baze de date sql Trebuie sisteme de salvare(bani,caracter,masini etc...) toate cu sql Mai sunt shopurile Daca era asa simplu sa faci un server de la 0 , editat foarte mult aproape toti aveau servere Sunt scripter si crede-ma,e mai greu decat pare
-
Sistemul de curse din gta v seamana cu gamemode-ul race defaul Daca vrei sa faci ceva calumea iti propun sa faci tu scripturile calumea,nu sa le iei de pe comunitate Momentan sunt ocupat cu developarea serverului meu dar am o gramada de idei,daca te intereseaza contacteaza-ma pe skype
-
I think the script uses dx shaders,because it seems only the textures change,the model is the same
-
Mersi dar o sa ia ceva timp pana gamemode-ul e gata
-
I solved the code Here is the new code,which is working with no problems: local mainFont = guiCreateFont("---",40) local sW,sH = guiGetScreenSize() local gSelect function theBackground() dxDrawImage(0,0,sW,sH,"---") end addEventHandler("onClientRender",root,theBackground) function mainElements() showCursor(true) showChat(false) showPlayerHudComponent("all",false) rButton = guiCreateLabel(0,sH - 240,400,50,"---",false) guiSetFont(rButton,mainFont) guiLabelSetColor(rButton,255,0,0) lButton = guiCreateLabel(0,sH - 170,400,50,"---",false) guiSetFont(lButton,mainFont) guiLabelSetColor(lButton,255,255,0) cButton = guiCreateLabel(0,sH - 100,400,50,"---",false) guiSetFont(cButton,mainFont) guiLabelSetColor(cButton,0,0,255) addEventHandler("onClientMouseEnter",rButton,buttonEnter,false) addEventHandler("onClientMouseEnter",lButton,buttonEnter,false) addEventHandler("onClientMouseEnter",cButton,buttonEnter,false) end addEventHandler("onClientResourceStart",root,mainElements) function buttonEnter() playSound("---") local gX,gY = guiGetPosition(source,false) gSelect = guiCreateStaticImage(gX,gY,sW,50,"---",false) guiMoveToBack(gSelect) guiSetAlpha(gSelect,0.25) end function bLeave(aX,aY) destroyElement(gSelect) end addEventHandler("onClientMouseLeave",getRootElement(),bLeave)
-
it doesnt work,i think is because gSelect reders in front of the labels and this creates a little bug,i'll try to solve it by myself
-
Hi guys,my name is Galea Problem(s):The "onClientMouseEnter" works just once and "onClientMouseExit" doesnt work for me Code: local mainFont = guiCreateFont(...) local sW,sH = guiGetScreenSize() function mainElements() mWindow = guiCreateStaticImage(0,0,sW,sH,"...",false) rButton = guiCreateLabel(0,sH - 240,400,50,"...",false,mWindow) guiSetFont(rButton,mainFont) guiLabelSetColor(rButton,255,0,0) lButton = guiCreateLabel(0,sH - 170,400,50,"...",false,mWindow) guiSetFont(lButton,mainFont) guiLabelSetColor(lButton,255,255,0) cButton = guiCreateLabel(0,sH - 100,400,50,"...",false,mWindow) guiSetFont(cButton,mainFont) guiLabelSetColor(cButton,0,0,255) addEventHandler("onClientMouseEnter",rButton,buttonEnter,false) addEventHandler("onClientMouseEnter",lButton,buttonEnter,false) addEventHandler("onClientMouseEnter",cButton,buttonEnter,false) --addEventHandler("onClientMouseExit",lButton,buttonLeave,false) --addEventHandler("onClientMouseExit",cButton,buttonLeave,false) end addEventHandler("onClientResourceStart",getRootElement(),mainElements) function buttonEnter() playSound("...") local gX,gY = guiGetPosition(source,false) gSelect = guiCreateStaticImage(gX,gY,sW,50,"...",false,mWindow) guiSetAlpha(gSelect,0.25) addEventHandler("onClientMouseExit",source,buttonLeave,false) end function buttonLeave() guiSetAlpha(gSelect,0) end addEventHandler()
-
Good idea,i didnt saw that is possible that
-
givePlayerMoney gives the player amount of drift points in money Try to use somethingl like this local moneyToGive addEventHandler("onElementDataChange",getRootElement(), function ( ElementData ) if ( ElementData == "Last Drift" ) then loca driftPoints = getElementData(source,ElementData) If driftPoints >= 10 and driftPoints <= 100 then moneyToGive = 2 elseif .... --you can continue as long as you want end givePlayerMoney(source,moneyToGive) end end )
-
Am inteles,o sa bag joburi
-
The Roleplay Reborn|O productie 100% romaneasca Motive sa alegi serverul nostru: -Va folosi un gamemode unic si original,inceput de la zero -Va avea un staff serios ales cu mare grija -Vom incerca sa facem o comunitate superba -Nivelul de roleplay va fi ridicat ceea ce va aduce mai multa distractie Detaliile gamemode-ului: Orasul in care se desfasoara actiunea:San Fierro Gamemode-ul Folosit:TRR,gamemode 100% romanesc Joburi: (Poate)Niciunul (Serverul va contine multe factiuni ce vor lua locul joburilor) Bazele de date:SQLite Scripturi:Cat mai avansate pentru a nu intalni buguri si a oferi o distractie aparte Moduri:Cel putin o suta(skinuri,arme,vehicule) Dificultate RolePlay:Hard(Grea) Economie:Normala(Preturile,salarile vor fi cat mai realiste) Marimea modurilor:90 MB,modurile sunt low-poly(poligoane scazute) pentru a asigura lipsa de lag/low-fps Marimea scripturilor: - Marimea hartii: 100 KB Factiunile de pe server: Guvernamentale: -San Fierro Sheriffs Departament(SFSD) (Numele e inspirat dupa texturile vehiculelor de politie) -San Fierro Fire Departament(SFFD) -San Fierro Emergency Response(SFER) -Special Forces -Federal Informations Bureau(FIB) Civile: -International Transports - ? (Inca ne mai gandim deocamdata) Ilegale: - Staff-ul Serverului: Scripter(i): -Galea - ? (Inca suntem in cautare de scripteri) Mapper(i): -Galea -eXe V.I.P(-uri): -Confusion (El a gasit toate modurile existente pe server) Progrese(Scripturi,Mapping si Moduri) Mapping(Infrumusetarea hartii) Doherty Garaje(Garajul Factiunii De Tunning) -neterminat Un simplu drum la care se lucreaza Baza factiunii SFFD -neterminat Un mic gang Scoala de Soferi -neterminat Versiunea: Actual-InDev 0.1 Altele: Lasati-ne o sugestie si s-ar putea sa o vedeti pe server Cautam membrii staff(mai ales mapperi experimentati) Spuneti-ne ce parere aveti de acest proiect Va multumesc de atentie, Galea Stefan
-
Imi doresc la fel de mult acest lucru
-
Nu cred ca mai ai vreo sansa sa-l gasesti,mai bine posteaza in community/resources ,acolo ai mai multe sanse sa-l primesti
-
Iti recomand pentru joburi si factiuni sa fie moduri la skinuri si masini , dar in rest sa fie default . Poate niste cladiri ar fii , dar in rest nu vad de ce ai folosii moduri.. Cauta moduri/skinuri low-poly Aceste moduri/skinuri sunt foarte bine optimizate pentru GTA SA si nu fac lag aproape deloc
-
Salutare enzo. Majoritatea gamemode-urilor au comenzi ascunse(se numesc in engleza backdoor-uri) pentru a preveni furtul scripturilor Sunt total de acord cu aceasta chestie si sunt bucuros ca aceste backdoor-uri exista! De ce? Gandeste-te ca stai 1 an intreg sa lucrezi la un gamemode si cand e gata,il pui pe un server iar cineva ti-l fura si il foloseste pentru serverul lui.Chestia asta te-ar termina psihic deoarece tu ai stat 1 an iar el cateva minute Metoda backdoor-urilor este una foarte buna pentru a-ti apara scripturile Unde se gasesc? De obicei backdoor-urile se gasesc in scripturile compilate/criptate(=scripturi care sunt bagate intr-un program pentru a cripta codul tau) Metodele acestea 2 sunt foarte bune deoarece aproape nimeni nu poate sa-ti editeze/fure scripturile Poate sa foloseasca exact scripturile alea si maxim sa mai adauge ceva peste INSA!!!!! Sunt oameni care se pricep la decompilarea/decriptarea acestor scripturi.Deocamdata niciun script nu va fi protejat 100% De aceea trebuie sa ne facem scripturile noaste/gamemode-urile noastre stiind ca nimeni nu va folosi vreo comanda ascunsa
-
Is the thing i said made in a function
-
After 5 minutes i found the problem and now the script works with no problems Here is the new code: local skinsTable = {1, 2, 7, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 32, 33, 34, 35, 36, 37, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 57, 58, 59, 60, 61, 62, 66, 67, 68, 70, 71, 72, 73, 78, 79, 80, 81, 82, 83, 84, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 120, 121, 122, 123, 124, 125, 126, 127, 128, 132, 133, 134, 135, 136, 137, 142, 143, 144, 146, 147, 153, 154, 155, 156, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 170, 171, 173, 174, 175, 176, 177, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 200, 202, 203, 204, 206, 209, 210, 212, 213, 217, 220, 221, 222, 223, 227, 228, 229, 230, 234, 235, 236, 239, 240, 241, 242, 247, 248, 249, 250, 252, 253, 254, 255, 258, 259, 260, 261, 262, 264, 265, 266, 267, 268, 269, 270, 271, 272, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283,284, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 299, 300, 301, 302, 303, 305, 306, 307, 308, 309, 310, 311, 312,9, 10, 11, 12, 13, 31, 38, 39, 40, 41, 53, 54, 55, 56, 63, 64, 69, 75, 76, 77, 85, 87, 88, 89, 90, 91, 92, 93, 129, 130, 131, 138, 139, 140, 141, 145, 148, 150, 151, 152, 157, 169, 172, 178, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 201, 205, 207, 211, 214, 215, 216, 218, 219, 224, 225, 226, 231, 232, 233, 237, 238, 243, 244, 245, 246, 251, 256, 257, 263, 298, 304 } local pedSkin local theModel = createPed(skinsTable[2],-2486,-615.8,132.7,270) addEvent("char.create") function createNewCharacter() setCameraMatrix(-2476,-615.8,135.7,-2486,-615.8,132.7) fadeCamera(true) ch_prevSkin = guiCreateButton(9, 312, 50, 35, "<<", false, cWindow) ch_nextSkin = guiCreateButton(230, 311, 50, 35, ">>", false, cWindow) ch_skinLabel = guiCreateLabel(59, 311, 171, 35, "Infatisare(skin)", false, cWindow) guiSetFont(ch_skinLabel, "clear-normal") guiLabelSetHorizontalAlign(ch_skinLabel, "center", false) guiLabelSetVerticalAlign(ch_skinLabel, "center") addEventHandler("onClientGUIClick",ch_prevSkin,charPrevSkin,false) addEventHandler("onClientGUIClick",ch_nextSkin,charNextSkin,false) end addEventHandler("char.create",root,createNewCharacter) function charPrevSkin(button,state) if button == "left" and state == "up" then if pedSkin == nil then pedSkin = 1 setElementModel(theModel,skinsTable[pedSkin]) setPedAnimation(theModel,"DANCING","dance_loop") elseif pedSkin == 1 then pedSkin = #skinsTable setElementModel(theModel,skinsTable[pedSkin]) setPedAnimation(theModel,"DANCING","dance_loop") else pedSkin = pedSkin - 1 setElementModel(theModel,skinsTable[pedSkin]) setPedAnimation(theModel,"DANCING","dance_loop") end outputDebugString(tostring(pedSkin)) end end function charNextSkin(button,state) if button == "left" and state == "up" then if pedSkin == nil then pedSkin = 1 setElementModel(theModel,skinsTable[pedSkin]) setPedAnimation(theModel,"DANCING","dance_loop") elseif pedSkin == #skinsTable then pedSkin = 1 setElementModel(theModel,skinsTable[pedSkin]) setPedAnimation(theModel,"DANCING","dance_loop") else pedSkin = pedSkin + 1 setElementModel(theModel,skinsTable[pedSkin]) setPedAnimation(theModel,"DANCING","dance_loop") end outputDebugString(tostring(pedSkin)) end end
-
local skinsTable = {1, 2, 7, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 32, 33, 34, 35, 36, 37, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 57, 58, 59, 60, 61, 62, 66, 67, 68, 70, 71, 72, 73, 78, 79, 80, 81, 82, 83, 84, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 120, 121, 122, 123, 124, 125, 126, 127, 128, 132, 133, 134, 135, 136, 137, 142, 143, 144, 146, 147, 153, 154, 155, 156, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 170, 171, 173, 174, 175, 176, 177, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 200, 202, 203, 204, 206, 209, 210, 212, 213, 217, 220, 221, 222, 223, 227, 228, 229, 230, 234, 235, 236, 239, 240, 241, 242, 247, 248, 249, 250, 252, 253, 254, 255, 258, 259, 260, 261, 262, 264, 265, 266, 267, 268, 269, 270, 271, 272, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283,284, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 299, 300, 301, 302, 303, 305, 306, 307, 308, 309, 310, 311, 312,9, 10, 11, 12, 13, 31, 38, 39, 40, 41, 53, 54, 55, 56, 63, 64, 69, 75, 76, 77, 85, 87, 88, 89, 90, 91, 92, 93, 129, 130, 131, 138, 139, 140, 141, 145, 148, 150, 151, 152, 157, 169, 172, 178, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 201, 205, 207, 211, 214, 215, 216, 218, 219, 224, 225, 226, 231, 232, 233, 237, 238, 243, 244, 245, 246, 251, 256, 257, 263, 298, 304 } local pedSkin local theModel = createPed(1,-2486,-615.8,132.7,270) addEvent("char.create") function createNewCharacter() setCameraMatrix(-2476,-615.8,135.7,-2486,-615.8,132.7) fadeCamera(true) --A little bit of code has been deleted from here , nothing that might affect the bug ch_prevSkin = guiCreateButton(9, 312, 50, 35, "<<", false, cWindow) ch_nextSkin = guiCreateButton(230, 311, 50, 35, ">>", false, cWindow) ch_skinLabel = guiCreateLabel(59, 311, 171, 35, "Infatisare(skin)", false, cWindow) guiSetFont(ch_skinLabel, "clear-normal") guiLabelSetHorizontalAlign(ch_skinLabel, "center", false) guiLabelSetVerticalAlign(ch_skinLabel, "center") --Code deleted from here addEventHandler("onClientGUIClick",ch_prevSkin,charPrevSkin) addEventHandler("onClientGUIClick",ch_nextSkin,charNextSkin) end addEventHandler("char.create",root,createNewCharacter) function charPrevSkin(button,state) if button == "left" and state == "up" then if pedSkin == nil then pedSkin = 1 setCharacterSkin(pedSkin) elseif pedSkin == 1 then pedSkin = #skinsTable setCharacterSkin(pedSkin) else pedSkin = pedSkin - 1 setCharacterSkin(pedSkin) end outputDebugString(tostring(pedSkin)) end end function charNextSkin(button,state) if button == "left" and state == "up" then if pedSkin == nil then pedSkin = 1 setCharacterSkin(pedSkin) elseif pedSkin == #skinsTable then pedSkin = 1 setCharacterSkin(pedSkin) else pedSkin = pedSkin + 1 setCharacterSkin(pedSkin) end outputDebugString(tostring(pedSkin)) end end function setCharacterSkin(theCharSkin) setElementModel(theModel,skinsTable[theCharSkin]) setPedAnimation(theModel,"DANCING","dance_loop") end Debugscript:Empty Problem/bug:When i press the two buttons the model doesnt change,pedSkin remains 1 every time The ped respawns so is a problem with the pedSkin not with the function