29.04.2014, 14:23
first do,
then:
then do
PHP код:
new pickup;//you can rename it to what you want)
PHP код:
//under OnGameModeinit
pickup(or whaterver you named it above) = CreatePickup(type, X, Y, Z, 9.0);//set it to your need
PHP код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == pickup)
{
SetPlayerPos(playerid, X, Y, Z);//the coords of the interior
SetPlayerInterior(playerid, 0);
}
return 1;
}