In your case, you can use the server_cmd function, which runs a server command.
Code:
new username[32];
get_user_name(id,username,31);
server_cmd("amx_godmode ^"%s^" 1",username);
server_cmd("amx_noclip ^"%s^" 1",username);
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS