20.12.2009, 16:58
Hello, this time it is my /exit command, I added a new house system and here is what i did
But the business and building exits doesn't working anymore, only the house exits!
I getting sick of this gm but i did to much on it so I dont onna stop with it somebody can help me?
Код:
for(new i = 0; i < sizeof(Building); i++) { if (PlayerToPoint(3, playerid,Building[i][ExitX], Building[i][ExitY], Building[i][ExitZ])) { if(GetPlayerVirtualWorld(playerid) == i) { if(Building[i][Locked] == 0 || PlayerInfo[playerid][pAdmin] >= 1) { SetPlayerInterior(playerid,Building[i][EnterInterior]); SetPlayerVirtualWorld(playerid,Building[i][EnterWorld]); SetPlayerPos(playerid,Building[i][EnterX],Building[i][EnterY],Building[i][EnterZ]); SetPlayerFacingAngle(playerid,Building[i][EnterAngle]); } else { GameTextForPlayer(playerid, "~r~Door Locked.", 5000, 1); } } } } for(new i = 0; i < sizeof(Businesses); i++) { if (PlayerToPoint(3, playerid,Businesses[i][ExitX], Businesses[i][ExitY], Businesses[i][ExitZ])) { if(GetPlayerVirtualWorld(playerid) == i) { if(Businesses[i][Locked] == 0 || PlayerInfo[playerid][pAdmin] >= 1) { SetPlayerInterior(playerid,Businesses[i][EnterInterior]); SetPlayerVirtualWorld(playerid,Businesses[i][EnterWorld]); SetPlayerPos(playerid,Businesses[i][EnterX],Businesses[i][EnterY],Businesses[i][EnterZ]); SetPlayerFacingAngle(playerid,Businesses[i][EnterAngle]); } else { GameTextForPlayer(playerid, "~r~Door Locked.", 5000, 1); } } } }
I getting sick of this gm but i did to much on it so I dont onna stop with it somebody can help me?