How to get map description
How to get map descriptions in other plugins
use amx_nextmap Only maps name can be obtained How should I read the selected map description as_oilrig "OilRig - Assassination" as_tundra "TunDra - Assassination" cs_747 "747 hijack - Hostage rescue" cs_assault "Assault - Hostage rescue" cs_backalley "Alleyway - Hostage rescue" cs_downed_cz "Downed CZ - Hostage rescue" cs_estate "Zaphod's estate - Hostage rescue" cs_havana "Havana - Hostage rescue" cs_havana_cz "Havana CZ - Hostage rescue" cs_italy "Italy - Hostage rescue" cs_italy_cz "Italy CZ - Hostage rescue" cs_militia "Militia - Hostage rescue" cs_militia_cz "Militia CZ - Hostage rescue" cs_office "Office - Hostage rescue" cs_office_cz "Office CZ - Hostage rescue" cs_siege "Canyon siege - Hostage rescue" de_airstrip "Airstrip - Bomb/Defuse" de_airstrip_cz "Airstrip CZ - Bomb/Defuse" de_aztec "Aztec - Bomb/Defuse" de_aztec_cz "Aztec CZ - Bomb/Defuse" de_cbble "Cobble - Bomb/Defuse" de_cbble_cz "Cobble CZ - Bomb/Defuse" de_chateau "Chateau - Bomb/Defuse" de_chateau_cz "Chateau CZ - Bomb/Defuse" de_corruption_cz "Corruption CZ - Bomb/Defuse" de_dust "Dust - Bomb/Defuse" de_dust_cz "Dust CZ - Bomb/Defuse" de_dust2 "Dust II - Bomb/Defuse" de_dust2_cz "Dust II CZ - Bomb/Defuse" de_fastline_cz "Fastline CZ - Bomb/Defuse" de_inferno "Inferno - Bomb/Defuse" de_inferno_cz "Inferno CZ - Bomb/Defuse" de_nuke "Nuke - Bomb/Defuse" de_piranesi "Piranesi - Bomb/Defuse" de_piranesi_cz "Piranesi CZ - Bomb/Defuse" de_prodigy "Prodigy - Bomb/Defuse" de_prodigy_cz "Prodigy CZ - Bomb/Defuse" de_sienna_cz "Sienna CZ - Bomb/Defuse" de_stadium_cz "Stadium CZ - Bomb/Defuse" de_storm "Storm - Bomb/Defuse" de_survivor "Survivor - Bomb/Defuse" de_tides_cz "Tides CZ - Bomb/Defuse" de_torn "Torn - Bomb/Defuse" de_torn_cz "Torn CZ - Bomb/Defuse" de_train "Trainyard - Bomb/Defuse" de_truth_cz "Truth CZ - Bomb/Defuse" de_vegas "Vegas - Bomb/Defuse" de_vertigo "Vertigo - Bomb/Defuse" de_vostok_cz "Vostok CZ - Bomb/Defuse" |
Re: How to get map description
what do you mean?? can you please be more specific ...
like read the .txt file of the map? i dont get it |
Re: How to get map description
When the next map is chosen (presumably in your map manager), you could read the description file to get the description of the next map and then add that onto whatever you're using to display the next map name.
There are several resources around here for reading from and parsing a file (check out the tutorials section). |
Re: How to get map description
mapchooser and mapsmenu I know how to read the map description
I just want to know how to get the map description in the following code PHP Code:
|
Re: How to get map description
Read the map descriptions into arrays (or even better a Trie with the map name as the key which will be simpler and more efficient than trying to use arrays) and then you can look up the description for the map and add it to your print function.
There are many plugins using Tries and I found a tutorial thread that gives an example using TrieSetString() and TrieGetSTring(). Let us know if you have questions or need help. Please post your code when you run into issues so we can better assist you. |
Re: How to get map description
Can you write a code tutorial on how to get descriptions
I just want to read the map description from maps.ini in other code |
Re: How to get map description
This tutorial shows how to set the set and get with TrieSetString and TrieGetString. That should be about all you need since you say you can read the data from the file.
|
Re: How to get map description
I'll try first. If there's anything I don't understand, I'll ask you
|
| All times are GMT -4. The time now is 15:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.