16.12.2012, 18:26
Nunca fiz algo do gкnero, talvez esteja certo mais provбvel que nгo
pawn Код:
new Float:VoltarX[MAX_PLAYERS], Float:VoltarY[MAX_PLAYERS], Float:VoltarZ[MAX_PLAYERS];
if(strcmp(cmdtext, "/entrandointerior", true) == 0)
{
GetPlayerPos(playerid, VoltarX[playerid], VoltarY[playerid], VoltarZ[playerid]);
if(IsPlayerInRangeOfPoint(playerid,2.0,>> AQUI PRESISA TER TODOS OS TELEPORTES ! '-' <<))
{
SetPlayerInterior(playerid, 16);
SetPlayerPos(playerid,-25.132598,-139.066986,1003.546875);
}
}
if(strcmp(cmdtext, "/sairdointerior", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,1.0,-25.132598,-139.066986,1003.546875))
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,VoltarX[playerid],VoltarY[playerid], VoltarZ[playerid]);
}
}