--> Has removed player's flag model file. Now, player's flag model in other model.
--> Has removed register_touch and DeathMSG. Wrote with reapi again.
--> Has added killer to sctf_flag_dropped.
--> Has corrected flag's disappearing.
--> More reapi
--> New Flag model(You should change with new model)
When creating new flag values, some servers give "Only the server may changelevel" message and they don't change map.
That's why, I removed changelevel command. It has no need to restart map. It is creating entity flags after new values.
If there is no flag values in maps folder, plugin will create auto values, it will save and it'll restart map.
Форматирование (BB-код):
publicplugin_cfg(){if(coordinates[COOR_TEBASE][0]==0.0&& coordinates[COOR_TEBASE][1]==0.0&& coordinates[COOR_TEBASE][2]==0.0&& coordinates[COOR_CTBASE][0]==0.0&& coordinates[COOR_CTBASE][1]==0.0&& coordinates[COOR_CTBASE][2]==0.0){new iFindSpawn =find_ent_by_class(get_member_game(m_nMaxPlayers),"info_player_deathmatch")if(iFindSpawn){get_entvar(iFindSpawn, var_origin, coordinates[NEW_COOR_TEBASE]);while(point_contents(coordinates[NEW_COOR_TEBASE])== CONTENTS_EMPTY)
coordinates[NEW_COOR_TEBASE][2]-=1.0
coordinates[NEW_COOR_TEBASE][2]+=35.0}else{server_print("[ SCTF ] There is a problem about TESpawnPoints")return;}
iFindSpawn =find_ent_by_class(get_member_game(m_nMaxPlayers),"info_player_start")if(iFindSpawn){get_entvar(iFindSpawn, var_origin, coordinates[NEW_COOR_CTBASE]);while(point_contents(coordinates[NEW_COOR_CTBASE])== CONTENTS_EMPTY)
coordinates[NEW_COOR_CTBASE][2]-=1.0
coordinates[NEW_COOR_CTBASE][2]+=35.0}else{server_print("[ SCTF ] There is a problem about CTSpawnPoints")return;}Write_new_Coordinates();server_print("[ SCTF ] Wrote new coordinates for map. Map will restart..")new mapname[32]get_mapname(mapname,charsmax(mapname))engine_changelevel(mapname)}}
На данном сайте используются файлы cookie, чтобы персонализировать контент и сохранить Ваш вход в систему, если Вы зарегистрируетесь.
Продолжая использовать этот сайт, Вы соглашаетесь на использование наших файлов cookie.