Posts: 66
Threads: 16
Joined: Sep 2009
Reputation:
0
Can someone help me with interiors.
For example, I made a Hospital interior and I have the coords of it
Now I want it were when people walk for the "i" sign infront of All Saints Hospital they go to those coords.
I've tried it buy messed it up.
Any help?
Posts: 672
Threads: 89
Joined: Jan 2010
pawn Код:
new hospital;//add this at the top of your script
hospital=CreatePickup([pickupid], 23,[coords])
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid=hospital) SetPlayerPos(playerid,[coords]
SetPlayerInterior(playerid,[interiorid])
}
Something like this!
Posts: 672
Threads: 89
Joined: Jan 2010
Quote:
Originally Posted by [NWA
Hannes ]
Do something like this:
pawn Код:
//Above main new hospitalenter;
//At GameModeInit hospitalenter = CreatePickup(1239, 23, X, Y, Z, -1);//Change X Y Z to the coords of where the pickup should be
//OnPlayerPickUpPickup if(pickupid == hospitalenter) { SetPlayerInterior(playerid, Interior);//Change "Interior" to the id of the interior your using SetPlayerPos(playerid, X, Y, Z);//Change X Y Z to the coords of where you should get teleported upon enterning pickup }
|
U explained better :P