Help With In Car Only Commands
#9

Ok cool now its working! when i am not in a taxi it say You are not in a Taxi. and when i am in a taxi it say You Are In A Taxi... But when i am in an other vehicle it say nothing... Why? look my code:

Код:
		 	if(strcmp(cmdtext, "/testcmds", true, 5) == 0) {
   if(IsPlayerInAnyVehicle(playerid))
			{
			if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 420){
		SendClientMessage(playerid,0xAA3333AA,"You Are In A Taxi.");
		}
		}
			else
		{
			SendClientMessage(playerid,0xAA3333AA,"You Are Not In A Taxi.");
		}
			return 1;
	}
Reply


Messages In This Thread
Help With In Car Only Commands - by Smiths - 15.08.2009, 15:14
Re: Help With In Car Only Commands - by Correlli - 15.08.2009, 15:17
Re: Help With In Car Only Commands - by Smiths - 15.08.2009, 15:19
Re: Help With In Car Only Commands - by Smiths - 15.08.2009, 15:22
Re: Help With In Car Only Commands - by Correlli - 15.08.2009, 15:27
Re: Help With In Car Only Commands - by or_yagoda - 15.08.2009, 15:27
Re: Help With In Car Only Commands - by Smiths - 15.08.2009, 15:38
Re: Help With In Car Only Commands - by Correlli - 15.08.2009, 15:50
Re: Help With In Car Only Commands - by Smiths - 15.08.2009, 16:00
Re: Help With In Car Only Commands - by Correlli - 15.08.2009, 16:03

Forum Jump:


Users browsing this thread: 2 Guest(s)