Author Topic: How do make a RTB pref?  (Read 1334 times)

I want to make a RTB Pref and Call it when a player joins.

What do you mean "call it"? Because RTB prefs aren't functions. They're preferences.

What do you mean "call it"? Because RTB prefs aren't functions. They're preferences.
I want to make one, and it sends a chat message what it would be set to when the player joins. Sorta like Join Message.


You can't call a rtb pref when someone joins.

You're looking for two completely different things

1. RTB_RegisterPref is the function you need. Find an add-on that has rtb prefs and look at how it's used, or use the search feature
2. Package gameconnection::autoadmincheck

Before learning programming languages you should probably work on mastering your English language skills, buddy.

Before learning programming languages you should probably work on mastering your English language skills, buddy.
i know how to English... i just do typing error.


RTB_RegisterPref(PrefName, PrefCategory, Pref, PrefType PrefMinimum PrefMaximum, ModName, DefaultValue, RequiresRestart, HostOnly, callback(I don't know what this means)

Here's an example:
Code: [Select]
RTB_RegisterPref("Integer 1","Integers","$Integer1","Int 0 500","Script_Integers","250",0,0,0);

callback(I don't know what this means)
Calls the function (callback) when a client updates that item from the server control