if(strcmp(cmd, \"/exit\", true) == 0){ if(IsPlayerConnected(playerid)){ for(new i = 0; i < sizeof(HouseInfo); i++) { //printf(\"House :%d\",i); if (PlayerToPoint(3, playerid,HouseInfo[hExitx], HouseInfo[hExity], HouseInfo[hExitz])) { if(HouseEntered[playerid] == i) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,HouseInfo[hEntrancex],HouseInfo[hEntrancey],HouseInfo[hEntrancez]); PlayerInfo[playerid][pInt] = 0; PlayerInfo[playerid][pLocal] = 255; SetCameraBehindPlayer(playerid); SetPlayerVirtualWorld(playerid,0); HouseEntered[playerid] = 255; if(HouseInfo[hHel] == 1) { new Float:tempheal; GetPlayerHealth(playerid,tempheal); if(tempheal < 100.0) { SetPlayerHealth(playerid,100.0); } } return 1; Az a gondom vele, hogyha bármilyen interriorba bemegyek /enter-el kimenni nemtudok a /exit-el. Mi a gond?
if(strcmp(cmd, \"/exit\", true) == 0){ if(IsPlayerConnected(playerid)){ for(new i = 0; i < sizeof(HouseInfo); i++) { //printf(\"House :%d\",i); if (PlayerToPoint(3, playerid,HouseInfo[hExitx], HouseInfo[hExity], HouseInfo[hExitz])) { if(HouseEntered[playerid] == i) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,HouseInfo[hEntrancex],HouseInfo[hEntrancey],HouseInfo[hEntrancez]); PlayerInfo[playerid][pInt] = 0; PlayerInfo[playerid][pLocal] = 255; SetCameraBehindPlayer(playerid); SetPlayerVirtualWorld(playerid,0); HouseEntered[playerid] = 255; if(HouseInfo[hHel] == 1) { new Float:tempheal; GetPlayerHealth(playerid,tempheal); if(tempheal < 100.0) { SetPlayerHealth(playerid,100.0); } } return 1;