17.08.2012, 03:17
pawn Код:
CMD:enterhouse(playerid, params[])
{
for(new i = 0; i < MAX_HOUSES;i++)
{
if(IsPlayerInRangeOfPoint(playerid,2.5,HInfo[i][XPos],HInfo[i][YPos],HInfo[i][ZPos]))
{
if(HInfo[i][locked] == 0)
{
SetPlayerVirtualWorld(playerid,playerid);
SetPlayerPos(playerid,2496.049804,-1695.238159,1014.742187);
}
}
return 1;
}
return 0;
}