PlayerInAnyVehicle Help
#1

I got this codes :
Код:
		 	if(strcmp(cmdtext, "/testcmds", true, 5) == 0) {
	  	if(IsPlayerInAnyVehicle(playerid))
			{
			SendClientMessage(playerid,COLOR_BLUE,"You Are In A Car.");
		}
			else
		{
			SendClientMessage(playerid,COLOR_LIGHTBLUE,"You Are Not In A Car.");
		}
			return 1;
	}
But i want to make it working only in a Taxi... what do i do?
Reply
#2

pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == TAXI_MODEL)
{
  //is in a taxi
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)