08.08.2009, 02:08
OnGameModeInit put this...
On top of the script under the #define's, put this...
Then put this anywhere in the script or in the bottom...
pawn Код:
AddStaticPickup(1239, 2, -2216.2722,2315.9092,7.5469);//My enter Pickup
pawn Код:
forward CheckForWalkingTeleport(playerid);
pawn Код:
public CheckForWalkingTeleport(playerid)
{
new Float:cx, Float:cy, Float:cz;
GetPlayerPos(playerid, cx, cy, cz);
if(PlayerToPointStripped(1, playerid,-2216.2722,2315.9092,7.5469, cx,cy,cz))
{//The Entrance
GameTextForPlayer(playerid, "~w~MY ENTRANCE", 5000, 1);
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,-2232.8948,2299.5195,19.8680);
PlayerInfo[playerid][pInt] = 6;
}
return 1;
}