30.12.2011, 11:26
here it is
pawn Код:
//top
new pik131;
OnPlayerPickupPickup(playerid,pickupid)
{
if(pickupid == pik131)
{
SetPlayerInterior(playerid,interiorid);
SetPlayerPos(playerid,x,y,z);
SendClientMessage(playerid,-1,"You have been teleported to..!");
}
return 1;
}
under OnGameModeInit callback
{
pik131 == CreatePickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld)
return 1;
}