
Beluga
Members-
Posts
48 -
Joined
-
Last visited
Beluga's Achievements

Rat (9/54)
0
Reputation
-
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)