else if (PlayerToPoint(2.0, playerid,914.1255,-1003.4916,38.0022)) {//Entrada Agкncia GameTextForPlayer(playerid, "~w~Agкncia Los Santos", 5000, 1); Controle(playerid, 0); GameTextForPlayer(playerid, "~b~Carregando", 2000, 5); SetTimerEx("Carregar", 2000, 0, "i", playerid); SetPlayerPos(playerid,1494.325195,1304.942871,1093.289062); SetPlayerFacingAngle(playerid, 176.0019); SetPlayerInterior(playerid,3); SetPlayerVirtualWorld(playerid, 0); SetCameraBehindPlayer(playerid); } else if (PlayerToPoint(1.0, playerid,1494.3429,1304.1154,1093.2891)) {//Saida Agкncia GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1); SetPlayerPos(playerid,914.1255,-1003.4916,38.0022); SetPlayerFacingAngle(playerid, 176.0019); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid, 0); SetCameraBehindPlayer(playerid); }
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/entrar", true) == 0) { if(IsPlayerInRangeOfPoint(playerid, 2.0, 1219.0685,-1812.5293,16.593)) { SetPlayerInterior(playerid, 3); SetPlayerVirtualWorld(playerid, 1); SetPlayerPos(playerid, 1494.325195,1304.942871,1093.289062); } if(IsPlayerInRangeOfPoint(playerid, 2.0, 938.0220,1733.2141,8.8516)) { SetPlayerInterior(playerid, 3); SetPlayerVirtualWorld(playerid, 2); SetPlayerPos(playerid, 1494.325195,1304.942871,1093.289062); } } if(strcmp(cmdtext, "/sair", true) == 0) { if(IsPlayerInRangeOfPoint(playerid, 2.0, 1494.325195,1304.942871,1093.289062) && GetPlayerVirtualWorld(playerid) == 1) { SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); SetPlayerPos(playerid, 1219.0685,-1812.5293,16.593); } if(IsPlayerInRangeOfPoint(playerid, 2.0, 1494.325195,1304.942871,1093.289062) && GetPlayerVirtualWorld(playerid) == 2) { SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); SetPlayerPos(playerid, 938.0220,1733.2141,8.8516); } } return 1; } |
Olб Japis,
Provavelmente deve ter outra coordenada dentro da Agencia que estб dando confronto, aconselho voce ir na Agencia e assim que sair dela e for teleportado no local errado voce digita /save (sem se mover) e procurar a coordenada que foi salva. |
Pode ter alguma filterscript/include, ou talvez a cordenada nгo estб sendo procurada corretamente.
|
CMD:entrar(playerid, params[]) { if(IsPlayerInRangeOfPoint(playerid, 2.0, 914.1255,-1003.4916,38.0022)) { SetPlayerInterior(playerid,3); SetPlayerPos(playerid,1494.325195,1304.942871,1093.289062); GameTextForPlayer(playerid, "~w~Agкncia Los Santos", 5000, 1); } return 1; } CMD:sair(playerid, params[]) { if(IsPlayerInRangeOfPoint(playerid, 2.0, 1494.3429,1304.1154,1093.2891)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,914.1255,-1003.4916,38.0022); GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1); } return 1; }