SAbJaN Posted February 15, 2012 Posted February 15, 2012 Hey guys, I am trying to create my own Role play server, And I was wondering if you can give me commands for factions, so like If you're in the LSPD, You would use /gate to open the LSPD Barrier and Garage. I just need some commands, Not all but the ones I mainly need them for is for LSPD and LSMFD (Medical and Fire Team). If you can do this it will be kindly appreciated. Regards, Matt
Agon Posted February 15, 2012 Posted February 15, 2012 Why do you want people to make scripts for you? You should show your scripts and scripters will correct it.. Anyway, use these commands: createTeam() setPlayerTeam() getPlayerTeam() addCommandHandler -- etc. etc.
SAbJaN Posted February 16, 2012 Author Posted February 16, 2012 What would I use in the command handler if say I wanted to Make a ticket system for PD, AddCommand What?
Agon Posted February 16, 2012 Posted February 16, 2012 addCommandHandler https://wiki.multitheftauto.com/wiki/Scr ... troduction try to figure it out...
SAbJaN Posted February 17, 2012 Author Posted February 17, 2012 Okay yeah, I have a little bit of an idea./ So I'd do this [color=#0000FF]addCommandHandler[/color][color=#00BF40]([/color][color=#FF0000]"ticket" (I don't know if ticket Player or..?[/color], (What goes here to take money with an output shown to everyone) )
Scooby Posted February 17, 2012 Posted February 17, 2012 u cant just add the commands and expect them to work, u need to add the functions that go with the commands to make them do what u want. theres no command to open gates/barriers... this has to be scripted. the same goes for everything really.
Agon Posted February 17, 2012 Posted February 17, 2012 function ticketSystem(source) takePlayerMoney(source, 1000) -- 1000$ you can change it.. outputChatBox(getPlayerFromName(source) .. "bought a ticket!", getRootElement(), 0, 255, 0, true) end addCommandHandler("ticket", ticketSystem)
Castillo Posted February 17, 2012 Posted February 17, 2012 @Agon:He's talking about a Police ticket system, not for lottery. Also it's: getPlayerName not getPlayerFromName to get a player name.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now