06.11.2009, 12:49
Hmm, Ive already got that part, its the same as yours, but the /exit still doesn't work (sometimes it doesn't, espcially when I've just bought a house it doesn't work).
Код:
else if(strcmp("/exit", cmd, true) == 0) // exit property { if( currentInt[playerid] > -1 && GetPlayerInterior(playerid) == GetPropertyInteriorId( currentInt[playerid] )){ new id = currentInt[playerid]; new Float:x; new Float:y; new Float:z; new Float:a; // make sure they're near the exit before allowing them to exit. GetPropertyExit( id, x, y, z ); if(!IsPlayerInRangeOfPoint(playerid,4.5,x,y,z)) { SendClientMessage(playerid,0xDDAA55FF,"* You must be near the property exit to /exit"); return 1; } a = GetPropertyEntrance( id, x, y, z ); SetPlayerPos( playerid, x, y, z ); SetPlayerFacingAngle( playerid, a ); SetPlayerInterior( playerid, 0 ); SetPlayerVirtualWorld( playerid, 0 ); } currentInt[playerid] = -1; return 1; }