How to put interiors
#1

Hello there

I am currently making a map and I need to put interiors to the houses but idk how can anyone help me?
Reply
#2

Код:
SetPlayerInterior(playerid, 0);
Change 0 to your respective id.

ID's can be found Here
Reply
#3

Here you go.
Reply
#4

but i have only codes createobject in the script when I covert my map from convertffs so where should i put the codes?
Reply
#5

Quote:
Originally Posted by FrakyX
Посмотреть сообщение
but i have only codes createobject in the script when I covert my map from convertffs so where should i put the codes?
Add them under
Код:
public OnGameModeInIt
Then compile it.
Reply
#6

ok iif i add those in public gamemodeint and where should I put the ID of the interior could you show me an xample?
Reply
#7

Buddy, Interiors are made under OnPlayerPickUp (I use it like that) For me its easy.

Like:

Код:
* public OnPlayerPickUpPickup(playerid, pickupid) 
{           if(pickupid == pickup_Cash) 
             { 
                        GivePlayerMoney(playerid, 1000); 
             }
Now as you can see, Its pickup for cash, now in place of that you can edit this:
Код:
GivePlayerMoney(playerid, 1000);
to this

Код:
SetPlayerInterior(playerid, 0);
Now if the player go to this pickup he will be teleported to interior number 1.
Add this code under Gamemode.
Code is incomplete, if you want accurate say me,

*Rep me if i helped. Thanks
Reply
#8

well i understood it anyway do u mind giving me the accurate? and one doubt u see there are many pickups and if i want a particular pickup to go to interior no 21etc(for xample). How do i do that? how do i put pickup id?
Reply
#9

Get the ID of that particular pickup and change its interior id.

Accurate: just read the concept, I am on tab so i cant elaborate it properly. https://sampwiki.blast.hk/wiki/OnPlayerPickUpPickup

If you know how to createpickup then understanding the next steps will be easy for you.
Reply
#10

ok ty Problem Solved and +REP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)