[HELP] Enter and Exit system ( buildings )
#4

Try to use pickups instead of /enter /exit commands.
Pickup ids: http://weedarr.wikidot.com/pickups
Create pickups from samp wiki: https://sampwiki.blast.hk/wiki/CreatePickup
Tutorial for pickups: https://sampforum.blast.hk/showthread.php?tid=327953
Types of pickups(spawn pickup types): https://sampwiki.blast.hk/wiki/PickupTypes
If you don't understand tutorial, but you understand Creating pickups from samp wiki:
pawn Код:
new pickup;
public OnGameModeInit()
{
       pickup = CreatePickup(model(I recommend you ID 1239), type(I put types in description), X cordinates, Z cordinates, Y cordinates, choose virtual world(if you want that pickup in all worlds set this to "-1");
       return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
       if(pickupid == pickup)
       {
               SetPlayerPos(playerid, X, Y, Z);
               SetPlayerInterior(playerid, (interiorid that you want));
       }
}
Note: if you use something like this pawn code you need to create pickup for exit too, so that pickup need to contain diffrent pickup id and other things.
I hope you understant that now and if you alredy know it then sorry.
If it helped rep++?
Reply


Messages In This Thread
[HELP] Enter and Exit system ( buildings ) - by ShabiCastroz - 16.10.2014, 15:47
Re: [HELP] Enter and Exit system ( buildings ) - by RockyGamer - 16.10.2014, 16:05
Re: [HELP] Enter and Exit system ( buildings ) - by ShabiCastroz - 17.10.2014, 14:48
Re: [HELP] Enter and Exit system ( buildings ) - by RockyGamer - 17.10.2014, 19:36

Forum Jump:


Users browsing this thread: 1 Guest(s)