28.08.2009, 04:53
I seriously have no idea why it send that message. Btw, try this, a little more efficient
pawn Код:
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 1;
}
}
}
return 1;
}