Quote:
Originally Posted by Switch
PHP Code:
triggerserver("gui",name,"reset1",player.account); else triggerserver("gui",name,"reset2",player.account,Reset_Reason.text);
|
That's pretty insecure, could use a memory editor to edit the trigger and basically reset anyone you want. The data of who needs to be reset should be determined serverside, which is just basically changing params[1] to player.account serverside. Other than that, neat.
If it were me I would have probably done something like this:
PHP Code:
function onCreated() {
this.list = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
for (temp.i = 0; temp.i < 5; temp.i ++) {
this.randomstr @= this.list.charat(int(random(0, this.list.length())));
}
}
for my way of determining the random string.
Edit:
You could also change the 5 to any number in the for loop and output a random string of alphanumeric characters as large as you specified.