Jump to content

[HELP] Admin Commands


SAbJaN

Recommended Posts

Posted

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

Posted

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. 

Posted

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) ) 

Posted

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.

Posted
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) 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...