Here you go m8, hope it helps
speed#=10.0
rem /* mouse movements */
mx#=wrapvalue(mx#+mousemovey()/3)
my#=wrapvalue(my#+mousemovex()/3)
mz#=wrapvalue(mz#+mousemovez()/3)
rem /* smooth angle rotation */
ca#=wrapvalue(curveangle(mx#,ca#,2.5))
cb#=wrapvalue(curveangle(my#,cb#,2.5))
cc#=wrapvalue(curveangle(mz#,cc#,2.5))
rem /* player controls */
if upkey()=1 then x#=x#+sin(my#)*speed#:z#=z#+cos(my#)*speed#
if downkey()=1 then x#=x#-sin(my#)*speed#:z#=z#-cos(my#)*speed#
if leftkey()=1 then x#=x#+sin(my#-90)*speed#:z#=z#+cos(my#-90)*speed#
if rightkey()=1 then x#=x#+sin(my#+90)*speed#:z#=z#+cos(my#+90)*speed#
rem /* smooth positioning */
cx#=curvevalue(x#,cx#,5.0)
cz#=curvevalue(z#,cz#,5.0)
rem /* camera movement */
rotate camera ca#,cb#,cc#
position camera cx#,y#,cz#