[Pomoc] Org vozila

5. Apr. 2012. Zaključano
421
pregleda
6
postova
^KinGstoN^
4
Shot Caller
5. Apr. 2012.
Skripta koju koristim: GM od 0
Problem: Napravio sam vozila za organizacije, ali kada igrac ulazi u vozilo, detekcija radi samo za prvu org..
Evo kodovi:


forward IsHitmanKola(carid);
forward IsSaintsKola(carid);
forward IsWCFKola(carid);
forward IsRMKola(carid);



new RMKola;
new WCFKola;
new HitmanKola;
new SaintsKola;



public IsWCFKola(carid)
{
for(new i = 0; i < sizeof(WCFKola); i++)
{
if(carid == WCFKola) return 1;
}
return 0;
}
public IsRMKola(carid)
{
for(new i = 0; i < sizeof(RMKola); i++)
{
if(carid == RMKola) return 1;
}
return 0;
}
public IsHitmanKola(carid)
{
for(new i = 0; i < sizeof(HitmanKola); i++)
{
    if(carid == HitmanKola)      return 1;
}
return 0;
}
public IsSaintsKola(carid)
{
for(new i = 0; i < sizeof(SaintsKola); i ++)
{
    if(carid == HitmanKola)      return 1;
}
return 0;
}


OnPlayerEnterVehicle:

if(IsWCFKola(vehicleid))
    {
if(PlayerInfo !=8 &&  PlayerInfo != 8 ) return GameTextForPlayer(playerid, "~r~Zakljucano! ~y~WCF", 2000, 5), GetPlayerPos(playerid, Pos, Pos, Pos), SetPlayerPos(playerid, Pos, Pos, Pos);
}
else if(IsRMKola(vehicleid))
{
if(PlayerInfo !=7 &&  PlayerInfo != 7 ) return GameTextForPlayer(playerid, "~r~Zakljucano! ~r~RM", 2000, 5), GetPlayerPos(playerid, Pos, Pos, Pos), SetPlayerPos(playerid, Pos, Pos, Pos);
}
else if(IsSaintsKola(vehicleid))
{
if(PlayerInfo !=6 &&  PlayerInfo != 6 ) return GameTextForPlayer(playerid, "~r~Zakljucano! ~p~SR", 2000, 5), GetPlayerPos(playerid, Pos, Pos, Pos), SetPlayerPos(playerid, Pos, Pos, Pos);
}
else if(IsHitmanKola(vehicleid))
{
if(PlayerInfo !=5 &&  PlayerInfo != 5 ) return GameTextForPlayer(playerid, "~r~Zakljucano! ~w~Hitman", 2000, 5), GetPlayerPos(playerid, Pos, Pos, Pos), SetPlayerPos(playerid, Pos, Pos, Pos);
}
^KinGstoN^
4
Shot Caller
5. Apr. 2012.
BUMP! Pomozite!
mishzjeah
4
Shot Caller
5. Apr. 2012.
Frenci wrote on April 5, 2012, 4:40 pm:
uzmi jednostavno iz nekog dugog game moda pa malo si editiraj


De bogati nepametuj pomozi ako znas ako neznas ne spamaj bezveze.
Maki187
5
Crime Lord
5. Apr. 2012.
umesto publcia koristi stock, to je prvo drugo objasni malo bolje sta ti tacno neradi... ujendo naso sam ti gresku
PlayerInfo !=8 &&  PlayerInfo != 8 


to znaci da igrac mora da bude i lider i ujendo clan, sto znaci da obicni clanovi org nebi mogli da voze vozilo, tako da moras koristiti
PlayerInfo !=8 ||  PlayerInfo != 8
^KinGstoN^
4
Shot Caller
5. Apr. 2012.
Ne radi mi to sto mogu uci u vozilo org iako nisam u toj org.. ali detekcija radi samo za prvu org koju sam stavio(wcf), kad tu udjem pise Zakljucano! WCF, a ostalo udjem bez problema
Maki187
5
Crime Lord
5. Apr. 2012.
nemoj da koristis else,  ostavi smao sa if(bla bla bla

mada neverujem da ce to pomoci

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha