You have to make a random origin near the admin's origin; you can't move all players to the same origin, i think...
Try this
PHP Code:
public command( id )
{
new
Float: pOrigin[ 3 ],
MyArray[ 35 ] = { 0, 1, ... },
i, j, rand, temp[ 35 ];
pev( id, pev_origin, pOrigin );
for( ; i < 35; i++ )
{
rand = random_num( 25, 60 );
if( !temp[ rand ] )
{
MyArray[ i ] = rand;
temp[ rand ] = 1;
}
else --i;
}
for( j = 1; j <= g_maxplayers; i++ )
{
if( !is_user_alive( j ) )
continue;
for( i = 0; i < 35; i++ )
engfunc( EngFunc_SetOrigin, j, MyArray[ i ] );
}
return PLUGIN_HANDLED;
}
Credit
__________________