[POMOC]Auta gTeam-a

Započeo Arnel_Bp
11. Mar. 2014. Zaključano
267
pregleda
7
postova
Arnel_Bp
5
Underboss
11. Mar. 2014.
Skripta koju koristim: moja
Detaljan opis problema: Pa napravio sam 3 gTeam-a u pawno, i napravio CARS ali trebaju mi odredjena auta koja sam stavio pod ArmyVozilo do ArmyVozilo treba mi kako samo to sto sam stavio mogu da stavim da samo TEAM_ARMY moze da ga vozi, ako udje TEAM_COP ILI TEAM_SWAT da ga izbaci iz auta, trazio sam ovo ali nikako ne mnogu da shvatim kako se ovo radi, ako bi neko mogao ovo da mi uradi, lakse cu shvatiti kako posle da uradim za admin vozila/cop/swat 🙂 Hvala
Dio skripte:

Evo vozila
new ArmyVozilo;

ArmyVozilo = AddStaticVehicleEx(425, 2827.3567, -2511.2375, 17.6339, -50.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(425, 2827.1699, -2527.6560, 17.6339, -50.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(425, 2827.3176, -2544.6189, 17.6339, -50.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(425, 2831.7776, -2564.5037, 17.6339, 0.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(432, 2823.4468, -2413.3616, 9.9063, -90.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(432, 2823.5957, -2404.9746, 9.9063, -90.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(432, 2823.5122, -2396.9883, 9.9063, -90.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(432, 2823.8765, -2422.0730, 9.9063, -90.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(470, 2841.2358, -2529.4829, 9.8245, 0.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(470, 2835.8459, -2529.3464, 9.8245, 0.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(470, 2830.2883, -2529.0569, 9.8245, 0.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(471, 2820.6484, -2520.1533, 9.3163, -90.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(471, 2820.6179, -2517.8655, 9.3163, -90.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(471, 2820.6411, -2515.2754, 9.3163, -90.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(468, 2820.5522, -2512.7834, 9.5168, -90.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(468, 2820.5732, -2511.0635, 9.5168, -90.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(468, 2820.6565, -2509.4102, 9.5168, -90.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(470, 2821.3721, -2385.6226, 16.6457, -90.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(470, 2821.4417, -2391.0120, 16.6457, -90.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(433, 2823.0105, -2397.2395, 17.3534, -90.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(433, 2822.8284, -2380.8079, 17.3534, -90.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(520, 2800.8269, -2546.0010, 14.2705, 0.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(520, 2781.9058, -2546.0273, 14.2705, 0.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(520, 2763.3464, -2546.0217, 14.2705, 0.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(469, 2762.0962, -2343.7761, 13.6391, -180.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(469, 2774.7000, -2343.1660, 13.6391, -180.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(469, 2787.2393, -2342.8333, 13.6391, -180.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(469, 2800.1309, -2342.3215, 13.6391, -180.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(433, 2746.7212, -2462.5127, 14.1609, -90.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(433, 2746.6338, -2469.8428, 14.1609, -90.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(432, 2745.3445, -2447.0378, 13.6992, -90.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(432, 2745.4456, -2438.7363, 13.6992, -90.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(469, 2763.7959, -2375.9614, 13.6391, -90.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(469, 2763.4204, -2361.9587, 13.6391, -90.0000, 149,149, 120);
ArmyVozilo =AddStaticVehicleEx(469, 2798.3994, -2376.3604, 13.6391, 90.0000, 149,149, 120);
ArmyVozilo = AddStaticVehicleEx(469, 2798.3870, -2361.9993, 13.6391, 90.0000, 149,149, 120);

Neke slike/video za lakse dobivanje pomoci(neobavezno):

Hvala jos jednom unaprije, nadam se da cete mi pomoci.
Vuzimir
5
Kingpin
11. Mar. 2014.
pa Pod OnPlayerStateChange dodaj:
if(newstate == PLAYER_STATE_DRIVER) 
{
new v = GetPlayerVehicleID(playerid);
if(v >= ArmyVozilo && v <= ArmyVozilo)
{
    if(gTeam == TEAM_ARMY) { }
    else {
        SCM(playerid, GRAD2, "{07C1F5}{FFFFFF}Niste Team Army.");
        RemovePlayerFromVehicle(playerid);
        return 1; }
}
}
Arnel_Bp
5
Underboss
11. Mar. 2014.
LS|Vuzimir wrote on March 11, 2014, 4:14 pm:
pa Pod OnPlayerStateChange dodaj:
if(newstate == PLAYER_STATE_DRIVER) 
{
new v = GetPlayerVehicleID(playerid);
if(v >= ArmyVozilo && v <= ArmyVozilo)
{
    if(gTeam == TEAM_ARMY) { }
    else {
        SCM(playerid, GRAD2, "{07C1F5}{FFFFFF}Niste Team Army.");
        RemovePlayerFromVehicle(playerid);
        return 1; }
}
}


ovako sam stavio
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newstate == PLAYER_STATE_DRIVER)
{
new v = GetPlayerVehicleID(playerid);
if(v >= ArmyVozilo && v <= ArmyVozilo)
{
if(gTeam == TEAM_ARMY) { }
  else {
  SendClientMessage(playerid, 0xFF0000FF, "This is Army's vehicle. You can't drive this.");
    RemovePlayerFromVehicle(playerid);
        return 1;
}
}
}


ima preko 20 errora nesto mi izbacuje da je nepoznat newstate i jos nesto evo slike http://www.zaslike.com/viewer.php?file=qc9hmo9j3ejhebpylc7.png sta mu je problem ?
James_SmithXDl
6
OG Legend
11. Mar. 2014.
if(newstate == PLAYER_STATE_DRIVER)
{
new v = GetPlayerVehicleID(playerid);
if(v >= ArmyVozilo && v <= ArmyVozilo)
{
if(gTeam == TEAM_ARMY) { }
  else {
  SendClientMessage(playerid, 0xFF0000FF, "This is Army's vehicle. You can't drive this.");
    RemovePlayerFromVehicle(playerid);
}
}
}
Arnel_Bp
5
Underboss
11. Mar. 2014.
Quote from March 11, 2014, 4:33 pm:
if(newstate == PLAYER_STATE_DRIVER)
{
new v = GetPlayerVehicleID(playerid);
if(v >= ArmyVozilo && v <= ArmyVozilo)
{
if(gTeam == TEAM_ARMY) { }
  else {
  SendClientMessage(playerid, 0xFF0000FF, "This is Army's vehicle. You can't drive this.");
    RemovePlayerFromVehicle(playerid);
}
}
}


izbacuje mi sad error na newstate sta cu mu tu staviti ? 🙂
Arnel_Bp
5
Underboss
11. Mar. 2014.
Ovo radi ali kad mi TEAM_Army udje isto ga izbaci iz auta? Sta mu je problem ? druga auta rade normalno ?
Vuzimir
5
Kingpin
11. Mar. 2014.
Arnel_Bp wrote on March 11, 2014, 4:50 pm:
Ovo radi ali kad mi TEAM_Army udje isto ga izbaci iz auta? Sta mu je problem ? druga auta rade normalno ?


pa najverovatnije ne postavi team_army kada izaberes army pa te izbaci provjeri kada biras klasu i kada izaberes dali army dali ima tu onda gTeam = TEAM_ARM; ?

to ti se nalazi pod OnPlayerRequestClass

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha