23.03.2010, 18:46
You should:
1. https://sampwiki.blast.hk/wiki/CreatePickup
2. https://sampwiki.blast.hk/wiki/OnPlayerPickUpPickup
In OnGameModeInit you create pickup like:
On top of script
Then in OnGameModeInit
After that in OnPlayerPickUpPickup
That's how you create teleports by pickup.
Sry for mistakes if any.
1. https://sampwiki.blast.hk/wiki/CreatePickup
2. https://sampwiki.blast.hk/wiki/OnPlayerPickUpPickup
In OnGameModeInit you create pickup like:
On top of script
Код:
new myfirstpickup;
Код:
myfirstpickup = CreatePickup(model, type, x,y,z, virtualworld)
Код:
if(pickupid = myfirstpickup) { SetPlayerPos(playerid,x,y,z); SetPlayerInterior(playerid, interiorid); return 1; }
Sry for mistakes if any.