[Ajuda] Veiculo /vip
#4

Код:
		if(strcmp(tmp, "estacionar", true) == 0)
		{
		    if(PlayerInfo[playerid][pCarKey] == 0 && PlayerInfo[playerid][pCarKey2] == 0 && PlayerInfo[playerid][pCarKey3] == 0)
			{
				SendClientMessage(playerid, COLOR_GREY, "Vocк nгo tem um Carro VIP.");
				return 1;
			}
			if(PlayerInfo[playerid][pCarKey] != vehid && PlayerInfo[playerid][pCarKey2] != vehid && PlayerInfo[playerid][pCarKey3] != vehid)
			{
				SendClientMessage(playerid, COLOR_GREY, "Esse nгo й seu Carro VIP.");
				return 1;
			}
	    	new Float:x,Float:y,Float:z;
			new Float:a;
			new carid;
			new getcarid;
			new Veiculo;
   			if(vehid == PlayerInfo[playerid][pCarKey]) { carid = PlayerInfo[playerid][pCarKey]; Veiculo = PlayerInfo[playerid][pVeiculo]; }
			else if(vehid == PlayerInfo[playerid][pCarKey2]) { carid = PlayerInfo[playerid][pCarKey2]; Veiculo = PlayerInfo[playerid][pVeiculo2]; }
			else if(vehid == PlayerInfo[playerid][pCarKey3]) { carid = PlayerInfo[playerid][pCarKey3]; Veiculo = PlayerInfo[playerid][pVeiculo3]; }
			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(getcarid == carid)
				{
					CarInfo[Veiculo][cLocationx] = x;
					CarInfo[Veiculo][cLocationy] = y;
					CarInfo[Veiculo][cLocationz] = z;
					CarInfo[Veiculo][cAngle] = a;
					format(string, sizeof(string), "~n~ Veiculo Estacionado Aqui! ~n~");
					GameTextForPlayer(playerid, "Veiculo Estacionado!~n~Ele vai nascer aqui!.", 10000, 3);
					DestroyVehicle(carid);
					new carid2 = CreateVehicle(CarInfo[Veiculo][cModel],CarInfo[Veiculo][cLocationx],CarInfo[Veiculo][cLocationy],CarInfo[Veiculo][cLocationz]+1.0,CarInfo[Veiculo][cAngle],CarInfo[Veiculo][cColorOne],CarInfo[Veiculo][cColorTwo],60000);
					TogglePlayerControllable(playerid, 1);
					SaveCars();
					SetVehicleToRespawn(carid2);
					return 1;
  				}
				return 1;
			}
			return 1;
		}
Reply


Messages In This Thread
Veiculo /vip - by Paulo_Skyler - 26.08.2012, 01:53
Re: Veiculo /vip - by Douglas_prt - 26.08.2012, 01:56
Re: Veiculo /vip - by Paulo_Skyler - 26.08.2012, 02:06
Re: Veiculo /vip - by Spectro_BR - 26.08.2012, 02:09
Re: Veiculo /vip - by WeenSoares_ - 26.08.2012, 13:31
Re: Veiculo /vip - by Tony_Rodrigues - 26.08.2012, 13:38

Forum Jump:


Users browsing this thread: 1 Guest(s)