SA-MP Forums Archive
How to put a custom interior in server or pwn?? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to put a custom interior in server or pwn?? (/showthread.php?tid=664790)



How to put a custom interior in server or pwn?? - sethpowell11 - 11.03.2019

How to put a custom interior in server or pwn??

i want this casino interior to put in my server

https://sampforum.blast.hk/showthread.php?tid=417206


Re: How to put a custom interior in server or pwn?? - DatGuySleepy - 11.03.2019

You could copy and paste the map's code into your GM under OnGameModeInit or do it as a filterscript.


Re: How to put a custom interior in server or pwn?? - sethpowell11 - 11.03.2019

i already put it but not working


Re: How to put a custom interior in server or pwn?? - JesterlJoker - 11.03.2019

You can place that code, on
PHP код:
public OnGameModeInit(){} 
and no I won't do that for ye.
but I can give example.
PHP код:
createInterior(){
    
#if defined _streamer_included // if you are using the streamer plugin
        
CreateDynamicObject(19454220.8875.031042.150.54, -90.720.00);
        
CreateDynamicObject(19454224.2475.031042.190.54, -90.720.00);
        
CreateDynamicObject(19454227.2375.031042.230.54, -90.720.00);
        
CreateDynamicObject(19454230.5275.031042.270.54, -90.720.00);
        
CreateDynamicObject(19454233.6675.031042.310.54, -90.720.00);
        
CreateDynamicObject(19454236.8475.031042.350.54, -90.720.00);
        
CreateDynamicObject(19454228.2266.601042.170.54, -90.720.00);
        
CreateDynamicObject(19454228.2357.981042.090.54, -90.720.00);
        
CreateDynamicObject(19454228.2352.691042.030.54, -90.720.00);
        
CreateDynamicObject(19465228.2770.131044.560.000.00, -90.12);
        
CreateDynamicObject(19465222.4070.171044.560.000.00, -90.48);
        
CreateDynamicObject(19464219.4372.941044.560.000.000.00);
        
CreateDynamicObject(19464219.4477.961044.550.000.000.00);
        
CreateDynamicObject(19464222.0779.811044.560.000.00, -89.58);
    
#else // and if you are not.
        
CreateObject(19454220.8875.031042.150.54, -90.720.00);
        
CreateObject(19454224.2475.031042.190.54, -90.720.00);
        
CreateObject(19454227.2375.031042.230.54, -90.720.00);
        
CreateObject(19454230.5275.031042.270.54, -90.720.00);
        
CreateObject(19454233.6675.031042.310.54, -90.720.00);
        
CreateObject(19454236.8475.031042.350.54, -90.720.00);
        
CreateObject(19454228.2266.601042.170.54, -90.720.00);
        
CreateObject(19454228.2357.981042.090.54, -90.720.00);
        
CreateObject(19454228.2352.691042.030.54, -90.720.00);
        
CreateObject(19465228.2770.131044.560.000.00, -90.12);
        
CreateObject(19465222.4070.171044.560.000.00, -90.48);
        
CreateObject(19464219.4372.941044.560.000.000.00);
        
CreateObject(19464219.4477.961044.550.000.000.00);
        
CreateObject(19464222.0779.811044.560.000.00, -89.58);
    
#endif
    
return 1;
}

public 
OnGameModeInit(){
    
createInterior();
    return 
1;