27.08.2009, 23:06
Код:
dcmd_exit(playerid,params[]) { #pragma unused params if(IsPlayerConnected(playerid) && PLAYERLIST_authed[playerid] == 1){ for(new h = 0; h <= MAX_HOUSES; h++) { if(PlayerToPoint(3.0, playerid, HousesCoords[HouseInfo[h][hLevel]][0], HousesCoords[HouseInfo[h][hLevel]][1], HousesCoords[HouseInfo[h][hLevel]][2])) { TeleportPlayer(playerid, HouseInfo[h][hExitX], HouseInfo[h][hExitY], HouseInfo[h][hExitZ], 0, 0, 0); } } } return true; }