-
Posts
2,947 -
Joined
-
Last visited
Everything posted by JR10
-
There is a built in command "help".
-
addCommandHandler ( string commandName, function handlerFunction, [bool restricted = false, bool caseSensitive = true] ) The first argument (the string) is the command. second one is the function. function showhelp(thePlayer) outputChatBox("/pm, send a personal message",thePlayer,255,0,0) outputChatBox("/stations,set radio steams",thePlayer,255,0,0) outputChatBox("/rules,a explanation of the rules and the punishments",thePlayer,255,0,0) outputChatBox("/report report someone who breaks the rules ",thePlayer,255,0,0) outputChatBox("/lock, lock your vehicle for others",thePlayer,255,0,0) end addCommandHandler("help",showhelp) The command is /help now.
-
What is this? function showhelp(thePlayer) outputChatBox("/pm, send a personal message",thePlayer,255,0,0) outputChatBox("/stations,set radio steams",thePlayer,255,0,0) outputChatBox("/rules,a explanation of the rules and the punishments",thePlayer,255,0,0) outputChatBox("/report report someone who breaks the rules ",thePlayer,255,0,0) outputChatBox("/lock, lock your vehicle for others",thePlayer,255,0,0) end addCommandHandler("showhelp",showhelp) No need for semi colons btw.
-
addEventHandler("onPlayerLogin", root, function() bindKey(source,"F7","down",getPlayerStats) end )
-
Search on the community, you will find all the public resources. Haven't found any? Then there is no public DD game mode, learn and make it yourself: wiki.multitheftauto.com/wiki/Main_Page
-
And other crap resources. Like another spawnpoint in some resource.
-
Just get his serial, and check on onPlayerConnect. If there is one slot available, and his serial isn't the same as the VIP one, kick him. You would increase checking how many slots available, according to how many VIP players you got.
-
car mod: https://community.multitheftauto.com/index.php?p= ... ls&id=2802 stolen: https://community.multitheftauto.com/index.php?p= ... ls&id=2799 EDIT: Another car mod: https://community.multitheftauto.com/index.php?p= ... ls&id=2808
-
Because there is no script for showing admins on /admins or /admin.
-
Freezes your PC? function fade() fadeCamera(true,10.0) triggerClientEvent(source , "fadeNew", source) end addEventHandler("onPlayerJoin",getRootElement(),fade) addEvent( "blurFade",true ) addEventHandler("blurFade",getRootElement(),fade) All I did, was specifying triggerFor in triggerClientEvent.
-
OMG, dude, what's wrong with you, do you take my code? Or just ignore it function fade() triggerClientEvent(source , "fadeNew", source) end addEventHandler("onPlayerJoin",getRootElement(),fade) addEvent( "blurFade",true ) addEventHandler("blurFade",getRootElement(),fade)
-
GUIEditor_Label = {} function lol () GUIEditor_Label[1] = guiCreateLabel(0.4063,0.3779,0.1531,0.209,"Welcome to our server ! Server is under construction at the moment , but feel free to play on it , expect more gamemodes from us , more features and much , much more ...",true) guiLabelSetColor(GUIEditor_Label[1],0,255,0) guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",true) guiSetFont(GUIEditor_Label[1],"clear-normal") fadeCamera(false,10.0) setTimer( fadeCamera, 10000,1,true) setTimer ( guiSetVisible, 10000, 1, GUIEditor_Label[1], false) setTimer(function() triggerServerEvent("blurFade",getLocalPlayer()) end, 10000, 1 ) end addEvent("fadeNew",true) addEventHandler("fadeNew",getRootElement(),lol)
-
You didn't take the server side.
-
if you want, admin levels script, you won't find that. Use "admin" resource. Else, if you just want to add groups. Open up acl.xml and add <group name="Owner" /> And save it, the server must be closed.
-
He means, the game mode in the server browser.
-
Wow, nice theme, keep up.
-
Didn't? what do you mean? It gets the player's position, and draws a text.
-
addEventHandler("onClientRender", root, function() local px, py, pz = getElementPosition(getLocalPlayer()) local x, y = getScreenFromWorldPosition( px, py, pz + 1.2 , 0.06 ) if not x or not y then return end local camX,camY,camZ = getCameraMatrix() if not isLineOfSightClear ( camX , camY, camZ, px, py, pz, true, false, false, true, false, true, false, getLocalPlayer ( )) then return end dxDrawText("LV", x, y, x, y,tocolor(255,255,255,255),2.0) end ) Add debug messages.