First off I would change the:
Code:
new Maxpl = get_maxplayers()
to something within the function instead. Lets say:
In the global scope and:
Code:
Maxpl = get_playersnum()
Then do your random:
Code:
NoClip = random_num( 1, Maxpl)
if(is_user_connected(NoClip) && is_user_alive(NoClip))
{
get_user_name( NoClip, NoClipName, 30)
client_print( 0, print_chat, "%s is the first person to be No Clipped!", NoClipName)
}
Or some such. I can't really understand what you wish to accomplish with this. But this should lead you in the correct direction.
__________________