[Pomoc] Dodavanje vozila

Započeo ωт:яρ | αχєℓ иєℓѕσи, Jun 22, 2011, 21:36:35 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Moj GameMode [Wt:RP]
Detaljan opis problema: Zelim da dodam vozilo za organizaciju koja nema nikako vozila,i sad kada dodajem za LSPD samo dodam na ona vec postojeca addstaticvehicle,a za ovu organizaciju nema nikako vozila,i sad kako da stavim da samo igraci koji su u toj organizaciji mogu uci u to vozilo?
Dio skripte: //
Neke slike/video za lakse dobivanje pomoci(neobavezno): //
Poslednja Izmena: Jun 22, 2011, 21:37:51 POSLE PODNE od [Wt:RP] Axel Nelson
//




kod mene nema od bandi,samo LSPD,Hitna i Obalna Straza qT_Tp? :(

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(gTeam[playerid] >= 1||gTeam[playerid] >= 3||gTeam[playerid] >= 4)
{
if (IsACopCar(vehicleid) && !ispassenger)
{
if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==2||PlayerInfo[playerid][pLeader]==3||PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pMember]==3) {}
    else {
//WantedPoints[playerid]+=2;
//SetPlayerCriminal(playerid,255, "Stealing A Police Vehicle");
new Float:cx, Float:cy, Float:cz;
GetPlayerPos(playerid, cx, cy, cz);
SetPlayerPos(playerid, cx,  cy, cz);
}
}
if (IsNgCar(vehicleid) && !ispassenger)
{
    if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==2||PlayerInfo[playerid][pLeader]==3||PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pMember]==3) {}
    else {
//WantedPoints[playerid]+=2;
//SetPlayerCriminal(playerid,255, "Stealing A Police Vehicle");
new Float:cx, Float:cy, Float:cz;
GetPlayerPos(playerid, cx, cy, cz);
SetPlayerPos(playerid, cx,  cy, cz);
}
}
if (IsAnAmbulance(vehicleid) && !ispassenger)
{
    if(PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4) { }
    else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Kradja vozila Hitne Pomoci"); }
}
if (IsATank(vehicleid) && !ispassenger)
{
if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==3||PlayerInfo[playerid][pMember]==3) {}
    else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Kradja Tenka"); SendClientMessage(playerid, COLOR_GREY,"You don't know how to drive it yet."); }
}
if(IsAnOwnableCar(vehicleid) && CarInfo[vehicleid][cLock] == 1 && CarInfo[vehicleid][cOwned] == 1)
{
    if(PlayerInfo[playerid][pAdmin] >= 1337 && AdminDuty[playerid] == 1) { }
    else
    {
    new Float:cx, Float:cy, Float:cz;
    GetPlayerPos(playerid, cx, cy, cz);
    SetPlayerPos(playerid, cx, cy, cz);
}
}
}
return 1;
}

public IsAnInstructor(playerid)
{
if(IsPlayerConnected(playerid))
{
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==11)
{
    return 1;
}
if(leader==11)
{
    return 1;
}
}
return 0;
}

public IsAMember(playerid)
{
if(IsPlayerConnected(playerid))
{
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==5 || member==6 || member==8 || member==14 || member==15 || member==16)
{
    return 1;
}
if(leader==5 || leader==6 || leader==8 || leader==14 || leader==15 || leader==16)
{
    return 1;
}
}
return 0;
}

public IsACop(playerid)
{
if(IsPlayerConnected(playerid))
{
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==1 || member==2 || member==3)
{
    return 1;
}
else if(leader==1 || leader==2 || leader==3)
{
    return 1;
}
}
return 0;
}

public IsAPDMember(playerid)
{
if(IsPlayerConnected(playerid))
{
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==1)
{
    return 1;
}
else if(leader==1)
{
    return 1;
}
}
return 0;
}
//

Tražilica čini čuda, a bogami i Google!

[quote author=
 Bedi link=topic=27246.msg201880#msg201880 date=1308772386]
Tražilica čini čuda, a bogami i Google!
[/quote]

Trazilice moja,nadji molim te pa da vidimo... Ako nemozes pomoci nemoj bezveze postati.


Edit: Sredio sam na drugi nacin,moze lock.
Poslednja Izmena: Jun 22, 2011, 21:58:01 POSLE PODNE od [Wt:RP] Axel Nelson
//