I know how could I use the way you told me to, but you don't really got what I'm trying to achieve here and I want it as simple as restrictatcmd(prontera,uptime,60); and btw now we have strcharinfo(3) so there is no need to use getmapxy just to get mapname xD