of     1   

ScripterJohn13
#42599822Wednesday, February 16, 2011 5:07 AM GMT

I decided to go ahead and work on my commands. I, unlike person299, am loading the commands from my model so if anyone abuses them I can just deactivate them. Anyways, so far I only have two commands but I have the saveData function and loadData function. saveData(player, key, value, force) loadData(player, key, value, force) in loadData value is like "number", "instance", "string", "boolean". force can be nil but if its not than it autoforces the method to be wahtever example... add("text","number"); loadData(player, "text", "string", true); --> auto force makes it use player:loadNumber("text"); Basically this function just uses knowledge of the value to determine which method of persistence to use. Nothing special really but ya... Current commands.... tban/player/time - bans a player for time(in mins) set/player/key/value - sets a datapersistent value Basically I am jsut wanting to discuss some ideas for this before I go any further. Anyone want to suggest some stuff?
xSnowingSlayerx
#42600015Wednesday, February 16, 2011 5:20 AM GMT

Admin commands? I am working on one too. We're gonna have a competition!
Samacado
#42600113Wednesday, February 16, 2011 5:28 AM GMT

I made an item drop system in the spirit of TF2. I just... don't have any items to drop...
wiiplay
#42604665Wednesday, February 16, 2011 3:58 PM GMT

Why not use Person299's as a BASE! :D Then add a way to easily load extra commands into the script o3o
xSnowingSlayerx
#42605648Wednesday, February 16, 2011 4:51 PM GMT

@wii - YEAH THAT IS A GREA- no.
bombpaw
#42610329Wednesday, February 16, 2011 8:18 PM GMT

Person has his encrypted and it will take to long to undo that :P
sncplay42
#42610363Wednesday, February 16, 2011 8:19 PM GMT

"Person has his encrypted" Unless he actually made a new one, nope.
oysi93
#42611188Wednesday, February 16, 2011 8:39 PM GMT

Suddenly you want Person299's commands? I don't wanna' sound rude or anythin', but his commands aren't really that good. ...At all...
deathguardian92
#42621951Thursday, February 17, 2011 12:02 AM GMT

@oysi No, they aren't anything brilliant, but he put a lot of tiime and effort into them, and they actually do do something (somewhat) useful =P They are sorta like the omega commands (holy CRAP that's copied alot) they don't use overly advanced stuff, but they take the basics pretty afr. Wow, several sentances for something that can be said in one, my work here is done =D
xSnowingSlayerx
#42623406Thursday, February 17, 2011 12:25 AM GMT

@sncplay42 - His code is so messy that you can officially call it "encrypted".
7rmb7
#42626274Thursday, February 17, 2011 1:06 AM GMT

@Snow Agreed x 100. It took me an hour to decipher it.
ScripterJohn13
#42626865Thursday, February 17, 2011 1:13 AM GMT

I'm not gonnah use his as a base... I am gonnah take my own route and direction with this. I may make it easier on the creator and make a gui login with pass.
blocco
#42626999Thursday, February 17, 2011 1:15 AM GMT

You lost me when you described your force parameter.
ScripterJohn13
#42627890Thursday, February 17, 2011 1:26 AM GMT

I just now updated it to handle multiple command args.... example: --parseMessage is a custom function. cmd,players,value=parseMessage("hey/go,stop,walk,run/what"); print(cmd, players, value) print(unpack(players)) --> Output Wed Feb 16 19:25:44 2011 - Running Script 'Script' hey table: 12744308 what go stop walk run
ScripterJohn13
#42628001Thursday, February 17, 2011 1:27 AM GMT

@Blocco, let me show you the saveData function. function saveData(player, key, value, force) local dataType=type(value); local item=true; if(force~=nil)then dataType=autoSet[key]; --autoSet is a table end if(dataType=="string")then player:saveString(key, value); elseif(dataType=="boolean")then player:saveBoolean(key, value); elseif(dataType=="userdata")then player:saveInstance(key, value); elseif(dataType=="number")then player:saveNumber(key, value); else item=false; print(LibraryName..":", "Save Unknown Data Type - "..key..","..value); end return item; end
ScripterJohn13
#42629966Thursday, February 17, 2011 1:58 AM GMT

I added the login screen. Non-admins that aren't preset can say loginscreen and it will show a screen that they can enter the code in. If you don't want people to have access to the code than use UPPERCASE characters for the code variable.
ScripterJohn13
#42630014Thursday, February 17, 2011 1:58 AM GMT

Oh ya but since I can't test it now I have positioned or sized the window yet I just set up its functions.

    of     1