View Single Post
Old 22/07/2010, 03:09 AM   #1
Cacoby
Huge Clucker
 
Cacoby's Avatar
 
Join Date: Jul 2010
Posts: 218
Reputation: 3
Default C-Interiors [Create your own interiors!]

C-Interiors
Cacoby Interiors


Introduction

is a simple INC created by me ,taking the idea from a tutorial on how to build houses

Function

its function is to create interiors easily

How to add the include to GM?

to add the include to your GM you just have to #include <C-Ints>

How to add interior

Add your gm interiors you just put this in OnGameModeInit():

Code:
CreateInterior(Float:Pickupx, Float:Pickupy, Float:Pickupz, Float:Telex, Float:Teley, Float:Telez, interior);
//          pickup pos [x - y - z]             Interior pos [x - y - z]         Interior id
Recomended to use Interior Menu

Tutorial

In your server use /save to save enter pos, and then use the interior dialog and select the Int enter-exit pickup

Example code

Code:
public OnGameModeInit()
{
DisableInteriorEnterExits();
CreateInterior(1554.9537,-1675.6584,16.1953, 246.7079,66.2239,1003.6406, 6);//LSPD Entrance
CreateInterior(246.5325,62.4251,1003.6406, 1552.3231,-1674.6780,16.1953, 0);//LSPD Exit
CreateInterior(1836.4064,-1682.4403,13.3493,493.3891,-22.7212,1000.6797, 17);//Alhambra Entrance
CreateInterior(493.4393,-24.9169,1000.6719, 1834.4000,-1681.7500,13.4331, 0);//Alhambra Exit
}
Download

SolidFiles

Credits

Cacoby [Scripter]

[HiC]TheKiller [your tutorial gave me the necessary functions]


Bugs

No bugs

Sorry for my bad english

Last edited by Cacoby; 15/08/2010 at 08:06 PM.
Cacoby is offline   Reply With Quote