PtokaX forum

Lua 5.3/5.2/5.1 Scripts (for PtokaX 0.4.0.0 and newer) => Request for scripts => Topic started by: vineetdhanawat on 23 November, 2008, 21:29:17

Title: MainChat Locker
Post by: vineetdhanawat on 23 November, 2008, 21:29:17
There is a Script for locking MainChat.. but can it be Modified to allow sumthing like.. say 3 or 4 characters only? Also this shouldnt stop users.. to type long commands in MainChat.. if its a valid command.. it should get processed.. or else follow the mainchat restriction..
Title: Re: MainChat Locker
Post by: vineetdhanawat on 23 November, 2008, 23:36:07
working.. awesummmm..

i think i found a glitch.. if u cud help..

if i being a non-registered user type anything starting with ! and less than 4 chars..

example: "!abc" : [without quotes] it gets displayed on mainchat even if abc is not a command
v can even write: "!abc yoyoyo i can write so long" , this way.. anyone is able to howsoever long he wants..

pls help :)
Title: Re: MainChat Locker
Post by: vineetdhanawat on 24 November, 2008, 00:28:32
 :( pls check again..

a non-registered user is still able to type
"!abc yoyoyo i can write so long"  [widout quotes] &
"+abc yoyoyo i can write so long" and the full text comes on MainChat

but not "!abcd"   that means.. it sumhow treats any text staring with ! and 4 chars limit and displays any long text after it..

Title: Re: MainChat Locker
Post by: vineetdhanawat on 24 November, 2008, 13:56:23
It did fixed my last problem.. but sumhow now nyone can type anything watever they want..
I mean even normal text example: "Hi, wassup?" etc.. no restriction on normal text..  :P

P.S. I thank you for, you spend time making this script... it'll  really be helpful to me.. Pls help making it work 100% efficient..  :)