[AJUDA] /Veiculo Estacionar Bug
#6

Tente.
Код:
if(strcmp(x_nr, "estacionar", true) == 0)
		{
				new x_nr[256];
		    	new Float:x,Float:y,Float:z;
				new Float:a;
				new carid;
				new getcarid;
				new Veiculo = PlayerInfo[playerid][pVeiculo];
    			if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey]) { carid = PlayerInfo[playerid][pCarKey]; }
				if(IsPlayerInVehicle(playerid,carid) && CarInfo[Veiculo][cOwned] == 1)
				{
				    getcarid = GetPlayerVehicleID(playerid);
					GetPlayerName(playerid, playername, sizeof(playername));
					GetVehiclePos(carid, x, y, z);
					GetVehicleZAngle(carid, a);
    				if(PlayerInfo[playerid][pCarKey] == 0)
					{
					SendClientMessage(playerid, COLOR_GREY, "Tu nгo tens um Veiculo!");
					return 1;
					}
                				if(getcarid == carid)
								{
									CarInfo[Veiculo][cLocationx] = x;
									CarInfo[Veiculo][cLocationy] = y;
									CarInfo[Veiculo][cLocationz] = z;
									CarInfo[Veiculo][cAngle] = a;
									format(string, sizeof(string), "~n~ Tu estacionaste o teu Veiculo aqui. ~n~");
									GameTextForPlayer(playerid, "Agora o teu Veiculo ira fazer spawn aqui.", 10000, 3);
									DestroyVehicle(carid);
									CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz]+1.0,CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],60000);
									TogglePlayerControllable(playerid, 1);
									SaveCars();
									return 1;
   								}
   								return 1;
			}
Espero ter ajudado
Reply


Messages In This Thread
[AJUDA] /Veiculo Estacionar Bug - by Pedro_Teixeira - 03.07.2011, 01:28
Respuesta: [AJUDA] /Veiculo Estacionar Bug - by RedBulL_x - 03.07.2011, 02:45
Re: [AJUDA] /Veiculo Estacionar Bug - by Pedro_Teixeira - 03.07.2011, 03:21
Re: [AJUDA] /Veiculo Estacionar Bug - by Ricop522 - 03.07.2011, 03:25
Re: [AJUDA] /Veiculo Estacionar Bug - by Pedro_Teixeira - 03.07.2011, 03:29
Re: [AJUDA] /Veiculo Estacionar Bug - by Nake01 - 03.07.2011, 03:34
Re: [AJUDA] /Veiculo Estacionar Bug - by Pedro_Teixeira - 03.07.2011, 04:23
Re: [AJUDA] /Veiculo Estacionar Bug - by Sr.Pekeno - 03.07.2011, 04:27
Re: [AJUDA] /Veiculo Estacionar Bug - by Pedro_Teixeira - 03.07.2011, 04:28
Re: [AJUDA] /Veiculo Estacionar Bug - by Sr.Pekeno - 03.07.2011, 04:42

Forum Jump:


Users browsing this thread: 2 Guest(s)