17.10.2014, 19:36
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:
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++?
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));
}
}
I hope you understant that now and if you alredy know it then sorry.
If it helped rep++?