[Pomoc] Kljuc


Započeo VuKaN, April 29, 2013, 23:58:11 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristm: Moja
Problem: Kako da stavim da kada lik udje u auto da ga freeze da ne moze da vozi ja sam ovako to stavio ali idalje moze da vozi, hocu da stavim da ga freeze....
if(IsAnOwnableCar(newcar))
		{
		    if(CarInfo[newcar][cOwned]==0)
		    {
		        JBC_TogglePlayerControllable(playerid, 0);
		        format(string,sizeof(string),"~w~Vozilo: %s~n~Cena: ~g~%d~n~~w~/v buy da bi kupio ovo vozilo~n~~r~/exit ~w~da izadjes iz vozila",CarInfo[newcar][cDescription],CarInfo[newcar][cValue]);
				GameTextForPlayer(playerid,string,5000,5);
				JBC_TogglePlayerControllable(playerid, 0);
		    }
		    if(CarInfo[newcar][cOwned]==1)
		    {
				new stringgic1[128];
				new stringgic2[128];
		        format(stringgic1,sizeof(stringgic1),"Vlasnik vozila je: %s(/v)",CarInfo[newcar][cOwner]);
		        format(stringgic2, sizeof(stringgic2),"~w~Vlasnik vozila je:~n~~r~%s",CarInfo[newcar][cOwner]);
		        GameTextForPlayer(playerid, stringgic2, 5000, 5);
				SendClientMessage(playerid, COLOR_BLUE, stringgic1);
				if(keycar != vehicle)
				{
				    RemovePlayerFromVehicle(playerid);
				    SendClientMessage(playerid, COLOR_GREY, "Nemas kljuc od ovog auta");
				}
				if(PlayerInfo[playerid][pPcarkey] == vehicle) { }
				else if(PlayerInfo[playerid][pPcarkey2] == vehicle) { }
				else if(PlayerInfo[playerid][pPcarkey3] == vehicle) { }
				else
				{
				    if(PlayerInfo[playerid][pOSC] >= 4)
					{
					    SendClientMessage(playerid, COLOR_GREY, "  Mozes da vozis ovaj automobil zato sto si Admin !");
					    JBC_TogglePlayerControllable(playerid, 1);
					}
				}
		    }
		}
		gLastCar[playerid] = newcar;
		gLastDriver[newcar] = playerid;
	}
Srecu cine male stvari i veliko pivo!
x3M-Gaming USKORO!

Kako to? Da stavim tamo gde je /engine li sta?
Srecu cine male stvari i veliko pivo!
x3M-Gaming USKORO!

Pa kada udje u vozilo koje je na V a dao sam ti sve sto se tice /v Ako znas pomozi ako ne jbg :/
Srecu cine male stvari i veliko pivo!
x3M-Gaming USKORO!

BUMP
Srecu cine male stvari i veliko pivo!
x3M-Gaming USKORO!

pod onplayerentervehicle stavis ako oces po cim stisne F ili ENTER da mu pise
if(IsAnOwnableCar(vehicleid))
{
	if(CarInfo[vehicleid][cOwned]==1)
	{
		new stringgic1[128];
		new stringgic2[128];
		format(stringgic1,sizeof(stringgic1),"Vlasnik vozila je: %s(/v)",CarInfo[vehicleid][cOwner]);
		format(stringgic2, sizeof(stringgic2),"~w~Vlasnik vozila je:~n~~r~%s",CarInfo[vehicleid][cOwner]);
		GameTextForPlayer(playerid, stringgic2, 5000, 5);
		SendClientMessage(playerid, COLOR_BLUE, stringgic1);
		if(keycar != vehicle)
		{
		new Float:Poz[3];
		GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
		SetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
		ClearAnimations(playerid);
		SendClientMessage(playerid, COLOR_GREY, "Nemas kljuc od ovog auta");
		}
		if(PlayerInfo[playerid][pPcarkey] == vehicle) { }
		else if(PlayerInfo[playerid][pPcarkey2] == vehicle) { }
		else if(PlayerInfo[playerid][pPcarkey3] == vehicle) { }
		else
		{
			if(PlayerInfo[playerid][pOSC] >= 4)
			{
				SendClientMessage(playerid, COLOR_GREY, "  Mozes da vozis ovaj automobil zato sto si Admin !");
				JBC_TogglePlayerControllable(playerid, 1);
			}
		}
	}
}
gLastCar[playerid] = vehicleid;
gLastDriver[vehicleid] = playerid;
}


new Float:Poz[3];
		GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
		SetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
		ClearAnimations(playerid);

ovo sam dodao da kad proba da udje da ga odmah "izbaci" odnosno getuje poziciju i postavlja na tu istu i ispisuje tekst
Poslednja Izmena: Maj 02, 2013, 10:23:33 PRE PODNE od ...Nikola...