Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Dev Script Tools v1.5 by MobDEV
- function OnPlayerEnterPark(player)
- ConsoleMessage(player,"^2Dev Script Tools v1.5 ^8by ^1MobDEV") -- Please don't remove these credits
- SetPlayerVariable(player,0,"0")
- end
- function OnEverySecond(player)
- if PlayerHasAccess(player) then
- BigMessage(player, "\n \n\nAdmin Commands: \nSay !Cmds to see commands") -- Note: it has to be !Cmds not !cmds
- else BigMessage(player, "\n\n\nPlayer Commands:\n!Credits\n!TP:PlayerName")
- end
- end
- --Don't change anything below this unless you know how to script
- function OnPlayerChat(player,text)
- if PlayerHasAccess(player) then
- if text == "!DisableJP" then
- AbortEvent()
- DisableJP()
- ConsoleMessageAllPlayers("^1JPs Disabled!")
- elseif text == "!EnableJP" then
- AbortEvent()
- EnableJP()
- ConsoleMessageAllPlayers("^2JPs Enabled")
- elseif text == "!EnableCart" then
- AbortEvent()
- EnableCarts()
- ConsoleMessageAllPlayers("^2Carts Enabled!")
- elseif text == "!DisableCart" then
- AbortEvent()
- DisableCarts()
- ConsoleMessageAllPlayers("^1Carts Disabled!")
- elseif text == "!Cmds" then
- AbortEvent()
- ConsoleMessage(player,"\n!DisableCart \n!DisableJP\n It's case sensitive, make sure to capitalize it correctly")
- ConsoleMessage(player,"\n!EnableCart \n!EnableJP\n It's case sensitive, make sure to capitalize it correctly")
- ConsoleMessage(player, "\n!Mute:MobDEV\n!Unmute:MobDEV\nChange MobDEV to the player's name.")
- ConsoleMessage(player, "\n!TP:MobDEV\n!tp=0101")
- ConsoleMessage(player, "\n!MuteGlob\n!UnmuteGlob")
- BigMessage(player, "Check your console!")
- elseif text == "!cmds" then
- AbortEvent()
- ConsoleMessage(player, "It's !Cmds, not !cmds")
- elseif text == "!Credits" then
- AbortEvent()
- ConsoleMessage(player, "^8Dev Script Tools v1.5 by ^1MobDEV")
- elseif text == "!credits" then
- AbortEvent()
- ConsoleMessage(player, "Capital C in !Credits")
- end
- end
- if PlayerHasAccess(player) and string.find(text,"!Mute:") then
- aa = string.len(text)
- ab = string.sub(text,7,aa)
- SetPlayerVariable(ab,0,"1")
- ConsoleMessage(ab,"You're muted!")
- ConsoleMessageAllPlayers(ab.. " has been muted!")
- end
- ac = GetPlayerVariable(player,0)
- if ac == "1" then
- ConsoleMessage(player, "Can't send messages, you're ^1muted")
- AbortEvent()
- end
- if PlayerHasAccess(player) and string.find(text, "!Unmute:") then
- ad = string.len(text)
- ae = string.sub(text,9,ad)
- SetPlayerVariable(ae,0,"2")
- ConsoleMessageAllPlayers(ae.. " has been ^2unmuted")
- ConsoleMessage(ae, "You've been ^2unmuted")
- end
- if string.find(text,"!TP:") then
- af = string.len(text)
- ag = string.sub(text,5,af)
- ah = GetPlayerX(ag)
- ai = GetPlayerY(ag)
- TeleportPlayer(player,ah,ai)
- ConsoleMessageAllPlayers("^1"..player.. " ^7is teleporting to ^1" ..ag)
- ConsoleMessage(ag, "^1"..player.. " ^7is teleporting to you")
- end
- if PlayerHasAccess(player) and string.find(text,"!tp=") then
- ak = text:sub(5,6)
- al = text:sub(7,8)
- TeleportPlayer(player,ak,al)
- ConsoleMessageAllPlayers(player.. " is teleporting to: "..ak)
- ConsoleMessage(player,"If there is block in the way, it won't work.")
- end
- if PlayerHasAccess(player) and text == "!MuteGlob" then
- SetParkVariable(1,"1")
- ConsoleMessageAllPlayers("Chat is muted.")
- end
- am = GetParkVariable(1)
- if am == "1" and player ~= "YourNameHere" then
- AbortEvent()
- ConsoleMessage(player, "Global chat is ^1muted")
- end
- if PlayerHasAccess(player) and text == "!UnmuteGlob" then
- SetParkVariable(1,"2")
- ConsoleMessageAllPlayers("Chat has been unmuted.")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement