-
Posts
1,027 -
Joined
-
Last visited
Everything posted by BorderLine
-
Well, im dont know nothing about sql, so i did the @Qwerty~ ide. And i have this. I want show a panel for select skin when player join for first time. client function selectskin() GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} select = guiCreateWindow(150,126,306,198,"Welcome to Biohazard Serer",false) GUIEditor_Label[1] = guiCreateLabel(102,24,111,19,"Select your gender",false,select) GUIEditor_Button[1] = guiCreateButton(29,74,88,41,"Male",false,select) GUIEditor_Button[2] = guiCreateButton(188,74,88,41,"Female",false,select) GUIEditor_Label[2] = guiCreateLabel(18,139,230,22,"This will select your skin",false,select) GUIEditor_Label[3] = guiCreateLabel(17,162,244,26,"Only can chose when you join on first time",false,select) end addEvent( "onSelect", true ) addEventHandler( "onSelect", getLocalPlayer(), selectskin ) server local firstTime = 0 function onLogin() if getElementData(source, "firstTime") == 1 then firstTime = 0 else setElementData ( source, "firstTime", 1 ) firstTime = 1 asd(source) end end addEventHandler("onPlayerJoin", getRootElement(), onLogin) function asd(source) if firstTime == 1 then triggerClientEvent(source,"onSelect",source) else outputChatBox("*"..getPlayerName(source).." welcome to Biohazard server", source) end end The problem is, the gui show all time before to login, and i changed the onPlayerJoin to onPlayerLogin and when im login with new accounts or old accounts, still showing. I mean dont show gui to FIrst login
-
there is any way to detect if the player join for first time to the server?
-
isnt necessary ask all here. You can check server and client functions and events. Make a gui is easy. Try by yourself. With this is enough help https://wiki.multitheftauto.com/wiki/Main_Page
-
changepassmarket = createMarker (273.19537, -158.01585, 0, "cylinder", 3, 255, 0, 0, 100) car1= createBlip ( 273.19537, -158.01585, 1.74052,35,2,0,0,0,0,0,180 ) addEvent ("viewGUI", true) function markerHit (hitPlayer, matchingDimension) if (source == carShopMarker) then -- pusiste carShopMarker en vez de changepassmarket triggerClientEvent ("viewGUI", hitPlayer) end end addEventHandler ("onMarkerHit", getRootElement(), markerHit)
-
just cuz its the same name? anyway, he want that, and just i help him
-
local x,y,w,h = 0.1, 0.1, 0.7, 0.5 local blood = guiCreateStaticImage(x,y,w,h,"images/wasted.png",true) guiSetVisible(blood, false) function wasted (killer, weapon, bodypart) guiSetVisible(blood, true) setTimer (guiSetVisible, 5000, 1, blood, false ) end addEventHandler("onClientPlayerWasted", getLocalPlayer(), wasted) I made this te other day.Maybe can help you just change seconds showing or image resolution and position
-
when people are fu** make comment like this. Just looking for excuses for not be less.
-
you need a shader. I mean he want replace vehicle.txd from models/generic/vehicle.txd check here https://wiki.multitheftauto.com/wiki/Eng ... rldTexture
-
destroyElement(dff) destroyElement(txd) si quieres mas carros le asignas otra variable por ejemplo function replaceModel() txd = engineLoadTXD("Skins/cesar.txd", 106 ) engineImportTXD(txd, 106) dff = engineLoadDFF("Skins/cesar.dff", 106 ) engineReplaceModel(dff, 106) txd2 = engineLoadTXD("Skins/other.txd", 105 ) engineImportTXD(txd2, 105) dff2 = engineLoadDFF("Skins/other.dff", 105 ) engineReplaceModel(dff2, 105) end y ai despues si keres destruir el other o el cesar destroyElement(dff2) destroyElement(txd2)
-
usa la funcion destroyElement
-
usa takePlayerMoney
-
better race_nos2 . you can edit how much time can use nos
-
Me gusta..! Luce bien
-
la funcion es DxDrawText y solo se aplica en clientside
-
takePlayerMoney ( player thePlayer, int amount ) serverside ve si te sirve Aca un ejemplo de la wiki function takeCash ( thePlayer, command, amount ) takePlayerMoney ( thePlayer, tonumber">tonumber(amount) ) end addCommandHandler ( "takecash", takeCash )
-
Me parece que en la comunidad hay un gamemode parecido a ese, no recuerdo cual es. Pero el gamemode de djlobo esta muy bien hecho y demaciado desarrollado
-
Agregaste los dff al meta?
-
De hay tu nick " the_kid" ??
-
o bien dentro del client de zombies viene el reemplazo de archivos txd, puedes agregarle abajo el mismo modo pero DFF y la misma ID, aunque el metodo que dice soldi es bastante mas ordenado
-
Si vas a postear fotos nomas, sin agregar comentarios o mas o menos decir los requisitos que pueda pedir, mejor ni pierdas el tiempo haciendolo, yo nomas queria comentarios y alguna descripcion. y en general.
-
Buena idea soren, No se me abia ocurrido. Ojalas resulte
-
Mira el post que te anote. Nomas agregas las lineas al fondo de los scripts, en sus respectivos sides. Ya sea client y server
-
Con respecto a eso, yo como nose muchos modos. Puedes en el juego, ponerte en el lugar donde quieras que se el spawn. Abres el panel de admin y hay muestra las cordenada. Las anotas o cojes un screenshot si juegas en mta a full pantalla. O si juegas en ventana hay las anotas directo al archivo ,map
-
@maauroo este es uno de los mas completos https://community.multitheftauto.com/index.php?p= ... ls&id=1152 editas skins, armas, localizacion de spawn y colores de team en spawn_selection. asi me parece ke se llama el archivo, pero es el unico archivo .map y los demas serian mas simple como estos https://community.multitheftauto.com/index.php?p= ... ils&id=533 https://community.multitheftauto.com/index.php?p= ... ils&id=144