pawn Код:
else if (PlayerToPointStripped(1, playerid,2286.9778,2431.8884,10.8203, cx,cy,cz)) // Quando o player passar por essa cordenada, irб acontecer algo com ele, seria ser teleportado
{
//PC Entrada
SetPlayerPos(playerid, 238.7194,141.7792,1003.0234); // aqui й o local onde ele serб teleportado... dps que vc passou pela coordenada indicada ali em cima
GameTextForPlayer(playerid, "~p~DP ~b~ PC",5000,1);
SetPlayerInterior(playerid,3); // setб o player no interior desejado
SetPlayerFacingAngle(playerid, 0); // angulo
PlayerInfo[playerid][pInt] = 3; // Interior do local
}
else if (PlayerToPointStripped(1, playerid,238.7413,138.6287,1003.0234, cx,cy,cz))
{
//PC Saida
SetPlayerPos(playerid, 2286.8313,2429.9688,10.8203);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
}
else if (PlayerToPointStripped(1, playerid,2337.1377,2459.1279,14.9742, cx,cy,cz))
{
//PC Entrada2
SetPlayerPos(playerid, 288.8707,169.1019,1007.1719);
GameTextForPlayer(playerid, "~p~DP ~b~ PC",5000,1);
SetPlayerInterior(playerid,3);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 3;
}
else if (PlayerToPointStripped(1, playerid,288.8605,166.9388,1007.1719, cx,cy,cz))
{
//PC Saida2
SetPlayerPos(playerid, 2337.0315,2457.4617,14.9688);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
}