How to install new maps?
#1

Hello.
I have ravens roleplay. And i have download new maps, but its a CreateObject.txt file, so how can i add it to the roleplay, so i can use it?
-Orbison
Reply
#2

Copy the objects from the objects.txt and paste it into the script under the OnGameModeInit line.
Reply
#3

Quote:
Originally Posted by alpha500delta
Посмотреть сообщение
Copy the objects from the objects.txt and paste it into the script under the OnGameModeInit line.
Hm, i tryed to do it, but the map is not changed.
On ravens, is it not CreateObject, but CreateDynamicObject, do i delete all CreateDynamicObjects and paste my own CreateDynamicObjects?
Reply
#4

PHP код:
public OnGameModeInit()
{
    
// Don't use these lines if it's a filterscript
    
SetGameModeText("Blank Script");
    
AddPlayerClass(01958.37831343.157215.3746269.1425000000);
    return 
1;

Delete those:
PHP код:
// Don't use these lines if it's a filterscript
    
SetGameModeText("Blank Script");
    
AddPlayerClass(01958.37831343.157215.3746269.1425000000); 
Copy+Paste the whole map that you downloaded. And compile it.

Add it in your "Filterscripts" folder and open Server.cfg, find the line Filterscripts and add the filterscript that you made. Then /gmx or /rcon gmx or restart the server. If it's still not working then download a streamer plugin. You can find it on the forums.
Reply
#5

Do you mean, i can make new pwn+amx file? Or do i need to paste it in the gm script?
Reply
#6

first convert your map to objects and copy/paste in to OnGameModeInit
example::::
public OnGameModeInit()
{
CreateObject(8417, 3168.894287, -2006.877686, 229.010910, 0.0000, 0.0000, 0.0000);
CreateObject(18450, -1027.567017, 189.684677, 28.302891, 0.3976, 345.0000, 358.5161);
Reply
#7

Quote:
Originally Posted by orbison
Посмотреть сообщение
Hm, i tryed to do it, but the map is not changed.
On ravens, is it not CreateObject, but CreateDynamicObject, do i delete all CreateDynamicObjects and paste my own CreateDynamicObjects?
If thats the case, you should rename all CreateObject's to CreateDynamicObject. Only a suggestion. Another thing is, are you removing all the old objects like MAPS?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)