14.10.2012, 12:41
1) Create a pickup (https://sampwiki.blast.hk/wiki/CreatePickup)
2) Under OnPlayerPickUpPickup, use SetPlayerPos and SetPlayerInterior to set player's pos and player's interior.
Example:
2) Under OnPlayerPickUpPickup, use SetPlayerPos and SetPlayerInterior to set player's pos and player's interior.
Example:
PHP код:
new pickup; //at the top.
//Under OnGameModeInit()
pickup = CreatePickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld);
//Under OnPlayerPickUpPickup
if(pickupid == pickup) //If they pickup a pickup that you have created, then
{
SetPlayerPos(playerid,x,y,z); //Set their position
SetPlayerInterior(playerid,interior); //Set their interior
return 1;
}