[HElP]/exit command won't work
#5

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;
	}
Reply


Messages In This Thread
[HElP]/exit command won't work - by Lilcuete - 10.10.2009, 00:44
Re: [HElP]/exit command won't work - by ModernRP - 05.11.2009, 21:14
Re: [HElP]/exit command won't work - by Nameless303 - 06.11.2009, 01:06
Re: [HElP]/exit command won't work - by troy52192 - 06.11.2009, 04:40
Re: [HElP]/exit command won't work - by ModernRP - 06.11.2009, 12:49

Forum Jump:


Users browsing this thread: 1 Guest(s)