
Beluga
Members-
Posts
48 -
Joined
-
Last visited
Everything posted by Beluga
-
addEventHandler ("onPlayerChat",getRootElement(), function abc (message,type) message = split(message,32) if (message[1] == "!points") then local player = getPlayerFromName(message[2]) or source local playerPoints = loadPlayerData (player,"points") setTimer(outputChatBox,50,1,getPlayerName (player) .. " #FF0000has " .. tostring(playerPoints) .. " points!",getRootElement(),255,0,0,true) end) addCommandHandler ( "name", abc ) You were missing an end.
-
Hmm I'll take an extra look at it because I found a resource that changes the controls (Resource called: Drug) EDIT// I changed the jump button. Sprint button in progress.
-
Is it possible to change bounded keys. Like I want to put Sprint at shift but it is at space. Thanks.
-
We will see.
-
What is Wolfenstein Enemy-Territory? Wolfenstein Enemy-Territory is a first person based shooting game. Here are some pictures of how the game look likes: Progress: I didn't start scripting yet, but here are the features: -GUI : 0% -First Person : 0% -Custom Weapons : 0% (Someone can help me wit this?) -Mapping : 0% -Sounds : 5% I hope you like my ideas!
-
function illegalweapon ( previousWeaponID, currentWeaponID ) if not isObjectInACLGroup (source, aclGetGroup ( "Admin" ) ) then if currentWeaponID == 38 or currentWeaponID == 35 or currentWeaponID == 36 then local weapon = getWeaponNameFromID ( currentWeaponID ) kickPlayer ( source, " AC detected ".. weapon) outputChatBox("Cheater/Bug Abuser kicked!", getRootElement(), 255, 0, 0) outputServerLog("ANTICHEAT: kicked abuser/cheater.") end end end addEventHandler ( "onPlayerWeaponSwitch", getRootElement(), illegalweapon ) function kickCheat ( theVehicle, seat, jacked ) if not isObjectInACLGroup (source, aclGetGroup ( "Admin" ) ) then if ( getElementModel ( theVehicle ) == 432 ) then kickPlayer ( source, " AntiCheat detected a Rhino. " ) outputChatBox("Cheater/Bug Abuser kicked!", getRootElement(), 255, 0, 0) outputServerLog("ANTICHEAT: kicked abuser/cheater.") end end end
-
I didnt ask to script something for me... I just tought there is some stock command like in SAMP if you run game and do /save then it will make to your Main san andreas folder playerpositsions.txt with saved cordinades. I know the code how to make but i what i don't know is how to get easy cordinades on map... Hmm you said you don't want a script but it is still scripted for you now. You could get this one by visiting https://wiki.multitheftauto.com/wiki/Main_Page.
-
Tuuker, This is not a valid way of asking. You can search it by yourself. Go to the Wiki site and search for createPickup... We won't script something for you.
-
function topDownView() local rotation = getPedRotation(getLocalPlayer()) local x,y,z = getElementPosition(getLocalPlayer()) setCameraMatrix(x,y,z+50,x,y,z,rotation) addEventHandler("onClientPreRender",getRootElement(),topDownView) end addEventHandler("onClientVehicleEnter",getRootElement(),topDownView) function normalView() removeEventHandler("onClientPreRender",getRootElement(),topDownView) setTimer(setCameraTarget,50,1,getLocalPlayer()) end addEventHandler("onClientVehicleExit",getRootElement(),normalView) This code is working, but if I do /debugscript 3 it is spamming: gui.lua addEventHandler: onClientPreRender is already handled - line 5 Someone know how to fix it?
-
I think this will help you resourceRoot = getResourceRootElement() escript = guiCreateWindow(272,149,433,431,"eSports script by Ghosts/Klesh",false) lb_s = guiCreateLabel(76,38,282,98,"eSports script",true,escript) guiLabelSetColor(lb_s,0,0,255) guiLabelSetVerticalAlign(lb_s,"top") guiLabelSetHorizontalAlign(lb_s,"center",false) guiSetFont(lb_s,"sa-header") lb_u = guiCreateLabel(9,95,422,42,"User name",true,escript) guiLabelSetColor(lb_u,255,255,255) guiLabelSetVerticalAlign(lb_u,"top") guiLabelSetHorizontalAlign(lb_u,"center",false) guiSetFont(lb_u,"sa-header") e_u = guiCreateEdit(64,140,309,45,"",true,escript) but_r = guiCreateButton(102,196,238,50,"register",true,escript) lb_p = guiCreateLabel(5,260,422,42,"Password",true,escript) guiLabelSetColor(lb_p,255,255,255) guiLabelSetVerticalAlign(lb_p,"top") guiLabelSetHorizontalAlign(lb_p,"center",false) guiSetFont(lb_p,"sa-header") e_p = guiCreateEdit(68,309,309,45,"",true,escript) GUIEditor_Button[1] = guiCreateButton(110,364,238,50,"login",true,escript) --- --- --- --- --- guiSetVisible (escript, true) guiSetText ( e_u, getPlayerName ( player ) ) function guiClick (button, state, absoluteX, absoluteY) uname = guiGetText ( e_u ) pass = guiGetText ( e_p ) if ( source == Btn_log ) then triggerServerEvent ("login", getLocalPlayer(), uname, pass) elseif ( source == Btn_reg ) then triggerServerEvent ("register", getLocalPlayer(), uname, pass) end end addEventHandler ("onClientGUIClick", getRootElement(), guiClick) function hide () guiSetVisible ( loginwindow, false ) showCursor (false) end addEvent ( "hide", true ) addEventHandler ( "hide", getLocalPlayer(), hide ) function show () guiSetVisible ( loginwindow, true ) showCursor (true) end addEvent ( "show", true ) addEventHandler ( "show", getLocalPlayer(), show ) function start () triggerServerEvent ( "checkaccname", getLocalPlayer() ) end addEventHandler ( "onClientResourceStart", getResourceRoot,start)
-
Hmm why there is no hideLoginWindow in client side? So triggerClientEvent.....(fill in by yourself)
-
Maybe you can open the freeroam resource and search where they put the code and learn from it.
-
moveObject(ufo1,10000,-353.2197265625,2187.2331542969,86.91221618523) This code is working perfect but when the ufo reaches the second x,y,z then it's not going back to his old position, so my question is is there a function that makes it possible to move the ufo to the second x,y,z and back and back and back etc. So it is moving all the time? Thanks!
-
Hmm thanks, I'll put it to client side and have a look!
-
badlandsCol = createColCuboid(-781.25305175781,73.259292602539,0.3499011993408,100,100,10) function badlands_Enter(thePlayer,matchingDimension) local player = getLocalPlayer() if isPedInVehicle(player) then setRadioChannel(2) end end addEventHandler("onColShapHit",badlandsCol,badlands_Enter) I put this code on the server side, but it isn´t working. No errors or something.
-
function setFuelBlips() createBlip (1938,-1777,19,20) createBlip (1007,-933,41,20) createBlip (652,-570,15,20) createBlip (1380,457,18,20) createBlip (-97,-1165,1,20) createBlip (-1606,-2714,13,20) createBlip (-1339,101,1,20) createBlip (1448,-2543,12,20) createBlip (-2022,156,27,20) createBlip (-1669,406,179,20) createBlip (-2404,976,44,20) createBlip (-2960,506,1,20) createBlip (2326,527,0,20) createBlip (721,-1700,0,20) createBlip (-2249,-2558,30,20) createBlip (-1471,-1855,31,20) createBlip (-1328,2677,49,20) createBlip (-731,2739,46,20) createBlip (608,1699,6,20) createBlip (2115,930,1,20) createBlip (2639,1097,10,20) createBlip (1596,2187,10,20) createBlip (2202,2474,10,20) createBlip (2147,2747,10,20) createBlip (1432,1402,10,20) createBlip (309,1802,16,20) createBlip (117,1888,17,20) end addEventHandler("onResourceStart",getRootElement(),setFuelBlips) Here you go!
-
I added this but I don't help I just don't add a subnode into players.xml
-
Meta file: <meta> <info author="Cornelis" type="script"/> <file src="players.xml"/> <script src="gui_s.lua" type="server"/> <script src="gui.lua" type="client"/> </meta> Players xml <players> </players> //EDIT: It don't show any errors anymore but It don't make a subnode in players.xml
-
Sorry for double post but I put all the files in a folder and not in .zip file but I still get the badArgument thingy!
-
So I just have to put all my scripts in a folder and then it is working?
-
Damn forgot to add to meta.xml