Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function helpHandler(source, cmd, arg)
- outputDebugString("help command handler run")
- if (arg == "shop" or arg == "buy") then
- outputChatBox("#FF2020[Usage]: #FFFFFF/buy <item> #FF2020- #FFFFFFUse /buy to get a full list of items available.", source, 255, 255, 255, true)
- elseif arg == "commands" then
- outputChatBox("#FF2020[Commands]: #FFFFFFShop: /buy or /shop", source, 255, 255, 255, true)
- outputChatBox("#FF2020[Commands]: #FFFFFF/nextmap, /carcolor", source, 255, 255, 255, true)
- elseif arg == "nextmap" then
- outputChatBox("#FF2020[Usage]: #FFFFFF/nextmap <part of map name> #FF2020- #FFFFFFCannot be cancelled once set.", source, 255, 255, 255, true)
- elseif arg == "carcolor" then
- outputChatBox("#FF2020[Info]: #FFFFFFApplies your preferred car color on spawn and vehicle change.", source, 255, 255, 255, true)
- outputChatBox("#FF2020[Info]: #FFFFFFThis does not work on maps that set car color.", source, 255, 255, 255, true)
- outputChatBox("#FF2020[Info]: #FFFFFFColor 1 and Color 2 represent GTA color codes.", source, 255, 255, 255, true)
- outputChatBox("#FF2020[Info]: #FFFFFFRed, Green, Blue are RGB colors. (0-255 each)", source, 255, 255, 255, true)
- outputChatBox("#FF2020[Usage]: #FFFFFF/carcolor <Color 1> <Color 2> #FF2020OR", source, 255, 255, 255, true)
- outputChatBox("#FF2020[Usage]: #FFFFFF/carcolor <Red 1> <Green 1> <Blue 1> <Red 2> <Green 2> <Blue 2>", source, 255, 255, 255, true)
- else
- outputChatBox("#FF2020[Help]: #FFFFFFUse #AAFFAA/help commands #FFFFFFfor a full list of commands available.", source, 255, 255, 255, true)
- outputChatBox("#FF2020[Help]: #FFFFFFF1 - Car hider", source, 255, 255, 255, true)
- outputChatBox("#FF2020[Help]: #FFFFFFF2 - Car fader", source, 255, 255, 255, true)
- outputChatBox("#FF2020[Help]: #FFFFFF/help <command> to get more info about a specific command.", source, 255, 255, 255, true)
- end
- end
- addCommandHandler('help', helpHandler)
Add Comment
Please, Sign In to add comment