06.11.2009, 21:51
Its real simple like this for instance....
with the defines/forwards
Under OnGameModeInit
Then make a category like this
You can use whatever term you want. I opted for it to be called enter/exit. If you want, tell me where you want the icon, and what interior you want to go to. I will script it for ya
with the defines/forwards
Код:
new ENTER; new EXIT;
Код:
ENTER = CreatePickup(ICON ID,TYPE,xcoordinate,ycoordinate,zcoordinate, virworld); EXIT = CreatePickup(xcoordinate,ycoordinate,zcoordinate);
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == ENTER)
{
SetPlayerPos(playerid,xcoordinate,ycoordinate,zcoordinate);
SetPlayerInterior(playerid,INTERIOR ID);
}
if(pickupid == EXIT)
{
SetPlayerPos(playerid,xcoordinate,ycoordinate,zcoordinate);
SetPlayerInterior(playerid,0);
}
return 1;
}

