Jump to content

Frank-De-Ruiter

Members
  • Posts

    60
  • Joined

  • Last visited

Everything posted by Frank-De-Ruiter

  1. Ehm what did you change on the script because here there is no } ... ??
  2. well this doesnt work for me, Something is worng in your script i think cant see it on the eye but it doesnt work so... Greatings Frank
  3. okay your right about that:P but i find this much more handy
  4. Hi all, Ive already made an team balancer for 2 teams but i now need one for 4 teams, but i dont know how to make it like this. My 2 team balance script: function balanceTeams ( thePlayer ) local groveTeam = getTeamFromName ( "grove" ) local ballasTeam = getTeamFromName ( "ballas" ) local groveCount = countPlayersInTeam ( groveTeam ) local ballasCount = countPlayersInTeam ( ballasTeam ) if groveCount == ballasCount then setPlayerTeam ( thePlayer , groveTeam ) elseif groveCount > ballasCount then setPlayerTeam ( thePlayer , ballasTeam ) elseif groveCount < ballasCount then setPlayerTeam ( thePlayer , groveTeam ) end end mayby someone here on this forum knows the secret answer? Greatings DJFrankie, Thx For The Help!
  5. i know but mayby handy for some people ho don't know how to make buttons
  6. exitButton = guiCreateButton( 0.30, 0.75, 0.4, 0.03, "Play", true ) addEventHandler( "onClientGUIClick", exitButton, exitTheInfoWindow ) function ( ) if (source == exitButton) then guiSetVisible( joinInfos, false ) showCursor( false ) end you forgot the: if (source == exitButton) then This tells activates the command when someone pushes the "Play" Button. Greatings Frank
  7. Yeah i know, But the problem is i dont know how to do this with the meta.xml config... mayby someone can tell me how to do this? Greatings Frank
  8. Hello all, I've just finished my new script for MTA: DM. This script is made to be simple to use without making all the ACL changes and that cind of stuff just load the resource start it and use it! Command List: ClientCommands: /lol - says: Player Is Lauging Out Loud! HAHAHA /rofl - says: Player is roling on the flood lauging! WHAHAHA /lmao - says: Player is lauging his ass off! WHAHAAH /brb - Tells the the player will be right back. /back - Tells that the player is back in the game /hi - Says Hi to everyone in the chat /bye - Says Bye to everyone in the chat /website - Shows your own website URL /host - Shows you game name like: This server is hosted by: ....... /serverip - Shows you serverip /showtime - Shows the time of your own PC so in what GMT you are doesnt matter it shows your own. AdminCommands: /ban - Bans an player ingame /kick - Kicks an player from the server /getip - Gets the ip of an player. Sorry for the little amount of Admin commands this is because we lost the hole admin commands script. v1.1 will have much more. The zip incluse the script.lua and the readme.txt you need to read this before using the script because you need to change some things (not hard) You can download the script from: http://rapidshare.com/files/86332548/GMS-V1.0-R2.zip.html ----------------------------------------------------------------------------------------------------------------------------------------------- 2. New Feutures in v1.1: 1. The new version will include an UCP (User Control Panel) in this panel they can read the last news, and they can also click on the commands in the buttons if they dont want to type them, Also the command- list will be in this panel so that you can just see what command you want to type, The UCP can be open and closed with the key: U 2. More admin commands for an better use of the script. ------------------------------------------------------------------------------------------------------------------------------------------------- If you find any bugs or something not working plz PM me so i can fix this and reupload the script. I hope you all like this script *This script is being brought to you by DJFrankie - Sponsored by http://www.radioxtreme.nl* Greatings DJFrankie
  9. Hello all, I want to know how to maken an script work only with moderator so that the admin makes you can moderator and when you login with your moderator something pops up and then you can use it but so that normal players cant use it. Is this possible to or cant this be done? Greatings Frank
  10. Well i hope v2.0 will be done in an few month but im still working on the UCP and thats just not something you make in an weerk Greatings frank
  11. i realy look stupid now dont i
  12. Thx im gonne ad an user panel for v2.0 when they push "g" then an panel will pop up (just like standard mta panel) and there they can click on the command or change weapons ect... I think its gonne be realy cool
  13. But how can you make like more buttons in 1 .lua file because like: button = guiCreateButton( 0.1, 0.2, 0.10, 0.03, "Admin!", true, WindowForm ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == button) then outputChatBox ( "Admin! I Need You!, Help Me!!" ) end end ) button = guiCreateButton( 0.1, 0.2, 0.10, 0.03, "Admin!", true, WindowForm ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == button) then outputChatBox ( "Admin! I Need You!, Help Me!!" ) end end ) etc... That doesnt work at mine then it only displays 1 button. Can someone tell me this?
  14. Yes The Furst Version Of GMS DM v1.0 is almost done!, This script is an plug and play simple to use script. version 1.0 may not be so big but it is very usefull Here come the commands of 1.0! PlayerCommands: /lol - you know this command very simple /rofl - same here /lmao - same here /brb - Tells that the player will be right back /back - Tells that the player is back in the game /hi - very simple you know /bye - same here /website - shows the owners website. /host - shows the host of the server /serverip - shows the serverip /showtime - shows the time of your own pc so if you in GMT-12 or in GMT+5 it doesnt matter it shows your own time ingame! AdminCommands: /afk - Tells the player he is away from his keyboard(also plays an sound so its not an unusefull command) /camp - Tells the player to stop camping and start driving /block - Tells the player to stop blocking the way /tk - This command in meant for clans or just modes with teams it tells an other player to stop Team Killing. /spam - This commands tell the player to stop caming or get muted by an admin /respect - This command is also for clans, it tells normal players to respect the players/admins in the clan. /ban - Simple, Bans an player /kick - Same here, Kicks an player /mute - Same here, mute/unmute an player /freeze - Same Again, freeze/unfreeze an player The admin commands are wrote in an way so that you can only use them on an lower lvl player then your self so player kicking player is not possible but admin kicking player is actuly possible so the script doesnt uses an admin system what i think it very usefull sins the servers all have got an very nice admin panel. The script doesnt need any ACL groups or everything just load it into your server and start it. The output of an command can be only seen in the chatbox the new version will have some of the commands outputting in the middle of your screen New Feutures in v2.0: camp/afk/spam/respect/tk/block will show up in the middle of the players screen. More Player/Admin Commands for an better and bigger script. IRC Echo that can be turned on and off using an config in the script. User Control PanelI hope you all "gonne" like my new script for mtadm. P.S. If you got good idea's for the script just post below Greatings Frank
  15. Hi, Im trying to make an script that shows the stats of an player like: Kills Deaths ect but i want it to save the stats so you dont lose them wen the mode restart can someone tell me how to do this im realy an beginner in lua script and i would realy like this script. Greatings Frank
  16. With the download errors then your http port is not open or your url is not set, however the url doesnt have to be set the server then just gos to the intern webserver. so then i sould the http port wich standard = 22005 Greatings Frank
  17. function camp ( command, text ) local thePlayer = getPlayerFromNick ( text ) outputChatBox ( "Dont Camp "..thePlayer.." Or Get Kicked By An Admin!") end addCommandHandler ( "camp", getPlayerFromNick, campcommand) Thats my /camp command i made but it doesnt work can someone tell what ive dont wrong? i need this command hope someone knows Greatings Frank
  18. Ehm... WARNING: lol.lua: Bad argument@ 'addCommandHandler' - Line: 4 With this script: function lolCommandFunction ( playerSource, command ) outputChatBox ( "* " .. getClientName(getRootElement()) .. " is Laughing Out Loud!") end addCommandHandler ( "lolcommand", getRootElement(), lolCommandFunction )
  19. Okay ive got an question the script works great but it doesnt show to everyone does it? it only g'o's to your self right? how can i make it that it sends it to everyone like: -XIII-DJFrankie Is Laughing Out Loud!! The script that i use now only sends it to your self: function lolFunction ( playerSource, command, parameter1, parameter2 ) outputChatBox ( "Im Laughing Out Loud!", playerSource ) end addCommandHandler ( "lolcommand", lolCommandFunction ) Can someone explain this because i dont understand anything off the wiki EDIT: Know server says: WARNING: lol.lua: Bad Argument @ 'AddCommandHandler' - Line:5 Is this an problem? because it doesnt work anymore... Greatings Frank
  20. Well ive got this script my self running on my server but i just put it in an .zip file with the following meta.xml| meta.xml: <meta> <info name="Joinmsg" description="Message To Player when connects" author="<yournamehere>"/> <script src="joinmsg.lua" type="server"/> </meta> And then in the .zip is the meta.xml and joinmsg.lua where the script is in.
  21. Okay i wanne make an command: /afk and that it then says in the chat: Player Your Away From Your KeyBoard Move Or Get Kicked! and that it also sends an sound to the client like an blip or something now ive seen this code on the wiki: function onPlayerSpawn ( theSpawnpoint, theTeam ) playSoundFrontEnd ( source, 16 ) end addEventHandler ( "onPlayerSpawn", getElementRoot(), onPlayerSpawn ) That sends an sound to an player when he spawns but can this be modified to work with my afk command? If someone knows that would be asoum becuase then ive got an command that sends an sound to the player and he knows to come back to the game Greatings, Thanks Frank
  22. Example 1: This example displays a chat message to all users. x = 5 y = 10 -- Displays the message outputChatBox ( "I have " .. x .. " apples and " .. y .. " oranges." ) Example 2: This example outputs a simple colour coded message, "Red White", where the 'White' is in white colour, and 'Red' is in a red colour. outputChatBox ( "Red #ffffffWhite", 255,0,0,true ) Example 3: This example allows for coloured chat, according to a player's nametag. This makes use of colour coded outputs. function colouredChat ( message, theType ) if theType == 0 then --if its normal chat (not /me or teamchat) then cancelEvent() --prevent MTA from outputting chat message = string.gsub(message, "#%x%x%x%x%x%x", "") --remove any hex tags in a player's chat to prevent custom colours by using lua's string.gsub local r,g,b = getPlayerNametagColor ( source ) --get the player's nametag colour local chatterName = getClientName ( source ) --get his name --output a message with the name as his nametag colour, and the rest in white. outputChatBox ( chatterName..":#FFFFFF "..message, getRootElement(), r, g, b, true ) end end Example 4: This example displays a chat message to a single user called someguy. -- Find the player element for the player called 'someguy' myPlayer = getPlayerFromNick ( "someguy" ) -- If a player was found called 'someguy' then... if ( myPlayer ~= false ) then x = 5 y = 10 -- Display the message outputChatBox ( "I have " .. x .. " apples and " .. y .. " oranges.", myPlayer ) end that stands in the touterial of mta but now i wanne know how to make the /command and then that triggers the script that sends the message into the chat may sound an bit noob but im learning lua so... Greatings DJFrankie
  23. In some servers ppl float above the serfice and you cant see someone else his wheels turn its realy anoying and you can bumb eachother then you fly over him Greatings Frank
  24. Ive got an little question too... Its very cool that MTA Deahtmatch Finaly came an few bugs but when does the mapeditor comes i realy want that one so that i can make cool maps:P does someone knows this or is this just an othere waiting release?
×
×
  • Create New...