29.07.2011, 08:42
Hi everyone! I have a BIG Problem with Houses. So let's start:
I created 6 Houses with Interior 2 and with /exit coordonates 225.756989,1240.000000,1082.149902 but with diferent /enter coordonates and Virtual Worlds.
OK. Fine. I go to the first house what I created and I type /buyhouse => /enter. And when I type /exit it's teleporting me to the /enter coordonates of the HOUSE 6, NOT OF THE FIRST HOUSE. I tryed /exit in House 2, house3, house 4, house5 but all teleporting me at outside of house 6. I need help ! I want when I enter in House 1, and i exit from it to teleport outside house 1 not outside house 6.
There are some codes:
/ENTER CODE:
/EXIT CODE:
HELP ME STEP BY STEP Please !
Or help me with Team Viewer (add on yahoo: myster_blake)
Sorry for my bad english !
I created 6 Houses with Interior 2 and with /exit coordonates 225.756989,1240.000000,1082.149902 but with diferent /enter coordonates and Virtual Worlds.
OK. Fine. I go to the first house what I created and I type /buyhouse => /enter. And when I type /exit it's teleporting me to the /enter coordonates of the HOUSE 6, NOT OF THE FIRST HOUSE. I tryed /exit in House 2, house3, house 4, house5 but all teleporting me at outside of house 6. I need help ! I want when I enter in House 1, and i exit from it to teleport outside house 1 not outside house 6.
There are some codes:
/ENTER CODE:
Код:
if(strcmp(cmd, "/enter", true) == 0) { if(IsPlayerConnected(playerid)) { for(new i = 0; i < sizeof(HouseInfo); i++) { if (PlayerToPoint(3, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez])) { //printf("Found House :%d",i); if(PlayerInfo[playerid][pPhousekey] == i || HouseInfo[i][hLock] == 0) { SetPlayerInterior(playerid,HouseInfo[i][hInt]); SetPlayerVirtualWorld(playerid, (i + 1)); SetPlayerPos(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]); GameTextForPlayer(playerid, "~g~Welcome Home", 5000, 1); PlayerInfo[playerid][pInt] = HouseInfo[i][hInt]; PlayerInfo[playerid][pLocal] = i; } else { GameTextForPlayer(playerid, "~r~Closed", 5000, 1); } } }
Код:
if(strcmp(cmd, "/exit", true) == 0) { if(IsPlayerConnected(playerid)) { for(new i = 0; i < sizeof(HouseInfo); i++) { //printf("House :%d",i); if (PlayerToPoint(1, playerid,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz])) { SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid, 0); SetPlayerPos(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]); PlayerInfo[playerid][pInt] = 0; PlayerInfo[playerid][pLocal] = 255; if(HouseInfo[i][hHel] == 1) { new Float:tempheal; GetPlayerHealth(playerid,tempheal); if(tempheal < 100.0) { SetPlayerHealth(playerid,100.0); } } } }
Or help me with Team Viewer (add on yahoo: myster_blake)
Sorry for my bad english !