Cmd tuning crash
#3

GetPlayerVehicleID is not a Model. This is number of vehicle in your map.

Код:
if(strcmp(cmd,"/tuning",true) == 0)
	{
		if(AccountInfo[playerid][AdminLevel] >= 1)
		{
			if(IsPlayerInAnyVehicle(playerid))
			{
				new carro = GetVehicleModel(GetPlayerVehicleID(playerid));
				if(carro == 562 || carro == 565 || carro == 559 || carro == 561)
				ChangeVehicleColor(carro, 6,6);
				AddVehicleComponent(carro, 1010);
				AddVehicleComponent(carro, 1087);
				}
				else
				{
  			SendClientMessage(playerid,Erro,"[ERROR] This car not tuning");
  			}
			}
			else
			{
			SendClientMessage(playerid,Erro,"Need a car");
			}
		}
		else
		{
		SendClientMessage(playerid,Erro,"You do not have permission to use this command");
		}
		return 1;
	}
Reply


Messages In This Thread
Cmd tuning crash - by saladaaBR - 24.02.2009, 22:42
Re: Cmd tuning crash - by Norn - 24.02.2009, 22:49
Re: Cmd tuning crash - by Jefff - 24.02.2009, 22:50
Re: Cmd tuning crash - by [RP]Rav - 25.02.2009, 06:57

Forum Jump:


Users browsing this thread: 2 Guest(s)