[POMOC] Vozila organizacija

Započeo [M:RP] Williamsâ„¢, Oktobar 08, 2012, 22:55:12 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Mexico RPG/DM od 0
Detaljan opis problema: Napravio sam vozila za sve org, ali problem je sto mogu da ulazim u sva vozila bez obzira koja sam org, samo za CIA radi lepo. Znaci stavio sam da ukoliko je vozilo od neke org, ako igrac nije clan/lider te org, vraca ga na njegovu poziciju i pise mu gametext Zakljucano! PD (ili nesto drugo), ali nazalost to radi samo kod vozila od CIA.
Dio skripte: OnPlayerEnterVehicle:
if(vehicleid >= PDVozilo[1] && vehicleid <= PDVozilo[20])
	{
	    if(PlayerInfo[playerid][pClan] != 1 && PlayerInfo[playerid][pLider] != 1)
	    {
	 	GameTextForPlayer(playerid, "~r~Zakljucano! ~b~PD!", 2000, 5);
	 	GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
	 	SetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
		return 1;
	    }
	} // ovo je za policiju

Vozila:
new PDVozilo[21];

PDVozilo[1] = AddStaticVehicleEx(596,1535.59997559,-1667.50000000,13.19999981,180.00000000,1,2,30); //Police Car (LSPD)
PDVozilo[2] = AddStaticVehicleEx(596,1601.59997559,-1684.09997559,5.69999981,90.00000000,1,2,30); //Police Car (LSPD)
PDVozilo[3] = AddStaticVehicleEx(596,1601.59997559,-1687.69995117,5.69999981,90.00000000,1,2,30); //Police Car (LSPD)
PDVozilo[4] = AddStaticVehicleEx(596,1601.59997559,-1691.69995117,5.69999981,90.00000000,1,2,30); //Police Car (LSPD)
PDVozilo[5] = AddStaticVehicleEx(596,1601.59997559,-1695.90002441,5.69999981,90.00000000,1,2,30); //Police Car (LSPD)
PDVozilo[6] = AddStaticVehicleEx(596,1601.69995117,-1699.80004883,5.69999981,90.00000000,1,2,30); //Police Car (LSPD)
PDVozilo[7] = AddStaticVehicleEx(599,1586.69995117,-1667.59997559,6.30000019,270.00000000,255,255,30); //Police Ranger
PDVozilo[8] = AddStaticVehicleEx(599,1586.89941406,-1671.29980469,6.30000019,270.00000000,255,255,30); //Police Ranger
PDVozilo[9] = AddStaticVehicleEx(599,1586.80004883,-1675.00000000,6.30000019,270.00000000,255,255,30); //Police Ranger
PDVozilo[10] = AddStaticVehicleEx(599,1586.80004883,-1678.50000000,6.30000019,270.00000000,255,255,30); //Police Ranger
PDVozilo[11] = AddStaticVehicleEx(427,1595.40002441,-1709.09997559,6.09999990,0.00000000,1,2,30); //Enforcer
PDVozilo[12] = AddStaticVehicleEx(427,1591.90002441,-1709.19995117,6.09999990,0.00000000,1,2,30); //Enforcer
PDVozilo[13] = AddStaticVehicleEx(427,1587.50000000,-1709.19995117,6.09999990,0.00000000,1,2,30); //Enforcer
PDVozilo[14] = AddStaticVehicleEx(523,1583.30004883,-1709.69995117,5.59999990,0.00000000,25,23,30); //HPV1000
PDVozilo[15] = AddStaticVehicleEx(523,1555.00000000,-1825.50000000,-64.09999847,0.00000000,25,23,30); //HPV1000
PDVozilo[16] = AddStaticVehicleEx(523,1579.09997559,-1709.30004883,5.59999990,0.00000000,25,23,30); //HPV1000
PDVozilo[17] = AddStaticVehicleEx(523,1575.30004883,-1709.30004883,5.59999990,0.00000000,25,23,30); //HPV1000
PDVozilo[18] = AddStaticVehicleEx(523,1571.30004883,-1709.80004883,5.59999990,0.00000000,25,23,30); //HPV1000
PDVozilo[19] = AddStaticVehicleEx(523,1566.19995117,-1710.00000000,5.59999990,0.00000000,25,23,30); //HPV1000
PDVozilo[20] = AddStaticVehicleEx(523,1559.59997559,-1710.59997559,5.59999990,0.00000000,25,23,30); //HPV1000


Neke slike/video za lakse dobivanje pomoci(neobavezno):
Poslednja Izmena: Oktobar 08, 2012, 22:58:01 POSLE PODNE od [M-RPG] Williamsâ„¢


Trenutno radim na modu Monaco RolePlay od 0.
Uradjeno: 95% | COMING SOON!

Vegas.

Napravi public i onda OnPlayerStateChange stavi da ga izbacuje iz auta.

Ma tako mi je glupo, hocu da ne moze nikako da udje


Trenutno radim na modu Monaco RolePlay od 0.
Uradjeno: 95% | COMING SOON!

Vegas.

Probaj ovo, uvjek prvo auto koje dodaješ mora biti na 0, zato se dodaje još jedno..
PDVozilo[0] = AddStaticVehicleEx(596,1535.59997559,-1667.50000000,13.19999981,180.00000000,1,2,30); //Police Car (LSPD)
PDVozilo[1] = AddStaticVehicleEx(596,1601.59997559,-1684.09997559,5.69999981,90.00000000,1,2,30); //Police Car (LSPD)
PDVozilo[2] = AddStaticVehicleEx(596,1601.59997559,-1687.69995117,5.69999981,90.00000000,1,2,30); //Police Car (LSPD)
PDVozilo[3] = AddStaticVehicleEx(596,1601.59997559,-1691.69995117,5.69999981,90.00000000,1,2,30); //Police Car (LSPD)
PDVozilo[4] = AddStaticVehicleEx(596,1601.59997559,-1695.90002441,5.69999981,90.00000000,1,2,30); //Police Car (LSPD)
PDVozilo[5] = AddStaticVehicleEx(596,1601.69995117,-1699.80004883,5.69999981,90.00000000,1,2,30); //Police Car (LSPD)
PDVozilo[6] = AddStaticVehicleEx(599,1586.69995117,-1667.59997559,6.30000019,270.00000000,255,255,30); //Police Ranger
PDVozilo[7] = AddStaticVehicleEx(599,1586.89941406,-1671.29980469,6.30000019,270.00000000,255,255,30); //Police Ranger
PDVozilo[8] = AddStaticVehicleEx(599,1586.80004883,-1675.00000000,6.30000019,270.00000000,255,255,30); //Police Ranger
PDVozilo[9] = AddStaticVehicleEx(599,1586.80004883,-1678.50000000,6.30000019,270.00000000,255,255,30); //Police Ranger
PDVozilo[10] = AddStaticVehicleEx(427,1595.40002441,-1709.09997559,6.09999990,0.00000000,1,2,30); //Enforcer
PDVozilo[11] = AddStaticVehicleEx(427,1591.90002441,-1709.19995117,6.09999990,0.00000000,1,2,30); //Enforcer
PDVozilo[12] = AddStaticVehicleEx(427,1587.50000000,-1709.19995117,6.09999990,0.00000000,1,2,30); //Enforcer
PDVozilo[13] = AddStaticVehicleEx(523,1583.30004883,-1709.69995117,5.59999990,0.00000000,25,23,30); //HPV1000
PDVozilo[14] = AddStaticVehicleEx(523,1555.00000000,-1825.50000000,-64.09999847,0.00000000,25,23,30); //HPV1000
PDVozilo[15] = AddStaticVehicleEx(523,1579.09997559,-1709.30004883,5.59999990,0.00000000,25,23,30); //HPV1000
PDVozilo[16] = AddStaticVehicleEx(523,1575.30004883,-1709.30004883,5.59999990,0.00000000,25,23,30); //HPV1000
PDVozilo[17] = AddStaticVehicleEx(523,1571.30004883,-1709.80004883,5.59999990,0.00000000,25,23,30); //HPV1000
PDVozilo[18] = AddStaticVehicleEx(523,1566.19995117,-1710.00000000,5.59999990,0.00000000,25,23,30); //HPV1000
PDVozilo[19] = AddStaticVehicleEx(523,1559.59997559,-1710.59997559,5.59999990,0.00000000,25,23,30); //HPV1000

Pa i jeste mi tako, to sto sam poceo sa 1 to sam nesto hteo da probam pa nije uspelo, btw ne radi ni ono za OnPlayerStateChange:

if(newstate == PLAYER_STATE_DRIVER)
	{
	for(new i; i < 20; i++)
	{
	if(GetPlayerVehicleID(playerid) == PDVozilo[i])
	{
	    RemovePlayerFromVehicle(playerid);
	    SCM(playerid, COL_GREY, "Niste clan Police Depertment!");
	    return 1;
	}
	}
	}

jednostavno ne radi :S


Trenutno radim na modu Monaco RolePlay od 0.
Uradjeno: 95% | COMING SOON!

Vegas.


Ne radi, btw poslao sam ti u PM sve sto sam uradio nzm stvarno zasto nece  :'(


Trenutno radim na modu Monaco RolePlay od 0.
Uradjeno: 95% | COMING SOON!



Trenutno radim na modu Monaco RolePlay od 0.
Uradjeno: 95% | COMING SOON!

Proslo 24h, I dalje nema pomoci :S


Trenutno radim na modu Monaco RolePlay od 0.
Uradjeno: 95% | COMING SOON!