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

Editing GameFuse Roleplay - 5%

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

What would I use in the command handler if say I wanted to

Make a ticket system for PD,

AddCommand  
  

What?

Editing GameFuse Roleplay - 5%

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

Editing GameFuse Roleplay - 5%

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.

ScoobySig.gif

[UVA]Scooby

Founder Of UVA - Ultimate Vice Assassins

http://www.uvaclan.com/

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) 

Posted

@Agon:He's talking about a Police ticket system, not for lottery.

Also it's:

getPlayerName not getPlayerFromName 

to get a player name.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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