
CheiN
Members-
Posts
164 -
Joined
-
Last visited
Everything posted by CheiN
-
addEvent ( "sunlight", true ) addEventHandler ( "sunlight", root ) Pm: no hagas offtopic...
-
por qe no usas addEvent y addEventHandler
-
donde muestra cuando obtiene la exp ?
-
show the new script please
-
im talking about: you create the function with name Bank you create the event and eventHandler with name Bank you make the same things with hacked
-
attachElements USE [.lua] and [./lua] tags WITHOUT . sry for mayus abuse
-
you are calling the function like event
-
Server Side addEvent("Bank", true) addEventHandler("Bank", root, function Bank() setElementFrozen(localPlayer, true) outputChatBox("Hacking started! It will take 5 mins to hack the Bank!", 255, 255, 0) end ) addEvent("hacked", true) addEventHandler("hacked", root, function hacked() givePlayerMoney (localPlayer, 10000) setElementFrozen(localPlayer, false) setPlayerWantedLevel ( localPlayer, 3 ) end setTimer ( hacked, 300000, 1 ) ) Client: HackerMarker = createMarker ( 2511, -1246, 35, "cylinder", 1.5, 255, 255, 0, 255 ) addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit ) local screenX, screenY = guiGetScreenSize() local width, height = 600, 600 local x = (screenX/2) - (width/2) local y = (screenY/2) - (height/2) function HackerWindow() HackWindow = guiCreateWindow(x,y,width,height,"Hacker-Job",false) guiWindowSetSizable(HackWindow,false) guiSetVisible(HackWindow, false) Hacker = guiCreateLabel(0.02,0.07,0.5,0.2,"Choose what you want to hack",true,HackWindow) button1 = guiCreateButton( 0.7, 0.1, 0.2, 0.1, "Bank", true,HackWindow ) end addEvent ("HackerWindow",true) addEventHandler ("HackerWindow",getResourceRootElement(getThisResource()),HackerWindow) function HackerWindowDestroy() destroyElement(HackerWindow) HackerWindow = false showCursor (false) end function HackerWindowClick() if source == button1 then triggerServerEvent ("Bank",getLocalPlayer()) HackWindowDestroy () elseif source == button2 then HackerWindowDestroy () end end addEventHandler("onClientGUIClick",getRootElement(),HackerWindowClick) try it
-
function sod ( ) spawnPlayer ( source, sintax....) outputChatBox ( "Welcome to M.F.A", source, 255, 0, 0, true ) end addEventHandler ( "onPlayerWasted", root, sod ) Im good?
-
hey guys i have 3 answers : 1(for Race gamemode):i want to teleport a player when he/she die but not with the car (like stheal) 2: what i should use to create the ped like spawnpoint 2; if 1 is possible i should use this?: bindKey spawnPlayer or setElementPosition createPed and Event "onPlayerWasted"
-
BUENOS DIAS TARDES NOCHES (sry for mayus abuse) hola chicos, bueno necesitaba saber 2 o 3 cosas, 1: quiero crear unas arenas (desde el gamemode race), pero quiero qe dicha arena sea en stheal ES esto posible? 2: si 1 es posible como hago para poner el ped en alguna posicion 3: si 1 y 2 son posibles deberia usar bindKey "onPlayerWasted" spawnPlayer o setElementPosition y createPed ?
-
No hagas Off Topic, y creo que el trabajo de decodificacion no es meter el archivo a un software y este te lo devuelve listo, es algo mas complicado y seria mas fácil hacer uno tuyo, no es tan difícil. claro, no es dificil crea una columna y agregale lo del zombie kill y un saver (no te diran las functions)
-
what i should use to make a command that redirect to other server. THX FOR READ
-
DatabAse and setAccountData are diferent things setAccountData is for put info to one acc and database is the thing that have all info of all players If you want use a script to set info to a user u should use: getPlayerAccount isGuestAccount getAccountData setAccountData
-
Problema Con Mi Mta Sa(Crash)
CheiN replied to maauroo's topic in Ayuda relacionada al cliente/servidor
Solucion: por que no te rindes y solo haces esto: No PONGAS EL TXD -
Y te dan un auto?? No cierto? Por que yo juego mucho en ffs y se que ellos no son tan boludos de poner un script en un mapa GRACIAS
-
function blipper () local perfectBlip = createBlip (sintax) destroyElement (perfectBlip) addEvent ("onPlayerCommand", true) addCommandHandler("hiddeblip", blipper) i think that it not will work...
-
Problema Con Mi Mta Sa(Crash)
CheiN replied to maauroo's topic in Ayuda relacionada al cliente/servidor
Casillo esto no va en scripting muevelo a ayuda relacionada al cliente servidor -
function Moon ( ) local visitor = getPlayerName dxDrawText ( "visitor" Joined, 44, screenHeight -41, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1.10, "pricedown" ) end addEventHandler ( "onClientRender", root, Moon )
-
WE ARE HUMANS ALL CAN FORGET ▲_▲ srry for mayus abuse
-
exploder, say thx to me -.- and you can use this: getPlayerAccount isGuestAccount getAccountData setAccountData Thx ¿no eh?