Pomoc oko vozila

Započeo stipo_grgic, April 02, 2010, 09:50:47 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Citat: [CroElite]RaZeR poslato April 16, 2010, 11:21:33 PRE PODNE
Ovako to je i meni bio problem ako ces dodavat negdje u sredinu aute sve ce ti se pomijesat. Ako ces na kraj testiraj dal ce ti se pomjesat nisam 100 posto siguran ako ce ti se pomjesat svaki auto koji dodas stavi za 1 vise id. npr ako je id 45 stavi 46.

Hm,Kakav ID?

Funky

Nadi Ovo u skripti i tu mjenjaj idove auta! public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(gTeam[playerid] >= 3)
{
if (IsACopCar(vehicleid) && !ispassenger)
{
if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==2) {}
    else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "KraÄ'a policijskog automobila"); }
    RemovePlayerFromVehicle(playerid);
}
if (IsAnAmbulance(vehicleid) && !ispassenger)
{
    if(PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4) { }
    else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "KraÄ'a bolničkog auta"); }
    RemovePlayerFromVehicle(playerid);
}
}
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==3 || member==5 || member==6 || member==8 || member==10)
{
    return 1;
}
if(leader==3 || leader==5 || leader==6 || leader==8 || leader==10)
{
    return 1;
}
}
return 0;
}/code]