AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Getting Server Info (https://forums.alliedmods.net/showthread.php?t=2692)

Peli 06-13-2004 20:51

Getting Server Info
 
I'm trying to make a plugin where it gets information about the map and if it is not a 'De or Cs' map it will make the gravity different and enable more fun stuff since it is just a custom fun map , but I need to know what is the native to get the map that is currently on the server? Thanks guys , this is probably the hardest/longest plugin I ever made , so I'm going to need a lot of help. :)

Downtown1 06-13-2004 21:54

Search the INC files :).

Peli 06-13-2004 22:25

Okay sorry I was a noob on that but I just couldn't find it , now I found it. It's :
Code:
get_mapname()
But here is my real question. :
1. If I wanted to get 'De and Cs' maps , would I do this? :
Code:
get_mapname(de_dust,cs_italy,etc...)
Would I have to type all the map names? Or could I just get the servers mapcycle somehow and put it there? Thanks. :)


All times are GMT -4. The time now is 14:51.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.