2017年3月

function sleepsort($array) { $pids = array(); for($i=1;$i<count($array);$i++) { if (($pid = pcntl_fork()) == 0) { $sleep = $array[$i] * 10000; usleep($sleep); echo $array[$i]."\n"; exit(); } elseif ($pid == -1) { - 阅读剩余部分 -

mp_coop_force_join_ct 1 //强行加入ctmp_coopmission_mission_number 2 //任务编号game_mode 0 //0=guardian 1=coopgame_type 4mp_roundtime 60; //回合时间mp_buytime 999999; //购买时间mp_guardian_special_kills_needed 80 //击杀数量mp_guardian_special_weapon_needed awp //指定武器mp_guardian_player_dist_max 2000mp_guardian- 阅读剩余部分 -

function get_pid($name_need) { $dir = scandir('/proc'); if($dir) { foreach($dir as $key => $name) { $status_file = sprintf("/proc/%s/status", $name); if(is_readable($status_file)) { $status = file($status_file); - 阅读剩余部分 -