Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Bugi poslato Mart 28, 2013, 17:18:52 POSLE PODNE

Naslov: [Pomoc] HelperVozila
Poruka od: Bugi poslato Mart 28, 2013, 17:18:52 POSLE PODNE
Skripta koju koristim: EGRPG Final Version
Detaljan opis problema: Pa hteo bih da samo helperi mogu da voze neki auto evo ta kola
Ovo imam na vrhu:
new helperveh[15];
A ovo su mi vozila
helperveh[0] = AddStaticVehicleEx(521,1828.5999800,-1116.5999800,23.6000000,90.0000000,2,2,15); //FCR-900
helperveh[1] = AddStaticVehicleEx(521,1828.5999800,-1118.5000000,23.6000000,90.0000000,2,2,15); //FCR-900
helperveh[2] = AddStaticVehicleEx(521,1828.5000000,-1120.6999500,23.6000000,90.0000000,2,2,15); //FCR-900
helperveh[3] = AddStaticVehicleEx(521,1828.3000500,-1110.5000000,23.6000000,90.0000000,2,2,15); //FCR-900
helperveh[4] = AddStaticVehicleEx(521,1828.4000200,-1108.5000000,23.6000000,90.0000000,2,2,15); //FCR-900
helperveh[5] = AddStaticVehicleEx(521,1828.3000500,-1106.0999800,23.6000000,90.0000000,2,2,15); //FCR-900
helperveh[6] = AddStaticVehicleEx(560,1813.0999800,-1146.0999800,23.8000000,0.0000000,2,2,15); //Sultan
helperveh[7] = AddStaticVehicleEx(560,1809.6999500,-1146.0999800,23.8000000,0.0000000,2,2,15); //Sultan
helperveh[8] = AddStaticVehicleEx(451,1818.0000000,-1146.0000000,23.7000000,0.0000000,2,2,15); //Turismo
helperveh[9] = AddStaticVehicleEx(451,1821.9000200,-1145.9000200,23.7000000,0.0000000,2,2,15); //Turismo
helperveh[10] = AddStaticVehicleEx(405,1827.1999500,-1145.6999500,23.9000000,0.0000000,2,2,15); //Sentinel
helperveh[11] = AddStaticVehicleEx(431,1800.0999800,-1101.9000200,24.3000000,90.0000000,2,2,15); //Bus
helperveh[12] = AddStaticVehicleEx(431,1748.9000200,-1101.8000500,24.3000000,90.0000000,2,2,15); //Bus
helperveh[13] = AddStaticVehicleEx(444,1713.0000000,-1105.0000000,24.7000000,270.0000000,2,2,15); //Monster
helperveh[14] = AddStaticVehicleEx(444,1713.5000000,-1100.3000500,24.5000000,270.0000000,2,2,15); //Monster


E sad zelim da na vozilima pise [HELPER] svetlo plavo i da ta vozila mogu da voze samo helperi a ostali ne!
Dio skripte: /
Neke slike/video za lakse dobivanje pomoci(neobavezno): /
Naslov: Odg: [Pomoc] HelperVozila
Poruka od: FlasH poslato Mart 28, 2013, 18:48:21 POSLE PODNE
Probaj ovako pod OnPlayerEnterVehicle:

new Float:Poz[3];
GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
if(vehicleid >= helperveh[1] && vehicleid <= helperveh[14])
{
    if(PlayerInfo[playerid][pHelper] != 1) // Prilagodi si varijablu za Helpera
    {
        SetPlayerPos(playerid, Poz[0], Poz[1]+1.5, Poz[2]+0.5);
        GameTextForPlayer(playerid, "Nisi helper", 5000, 5); // Salje mu poruku
}
}
Naslov: Odg: [Pomoc] HelperVozila
Poruka od: Blaeks poslato Mart 28, 2013, 19:42:52 POSLE PODNE
ispravka flash, zapostavio si jedno vozilo new Float:Poz[3];
GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
if(vehicleid >= helperveh[0] && vehicleid <= helperveh[14])
{
    if(PlayerInfo[playerid][pHelper] != 1) // Prilagodi si varijablu za Helpera
    {
        SetPlayerPos(playerid, Poz[0], Poz[1]+1.5, Poz[2]+0.5);
        GameTextForPlayer(playerid, "Nisi helper", 5000, 5); // Salje mu poruku
}
}
Naslov: Odg: [Pomoc] HelperVozila
Poruka od: FlasH poslato Mart 28, 2013, 19:47:23 POSLE PODNE
Citat: Blaeks poslato Mart 28, 2013, 19:42:52 POSLE PODNE
ispravka flash, zapostavio si jedno vozilo new Float:Poz[3];
GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
if(vehicleid >= helperveh[0] && vehicleid <= helperveh[14])
{
    if(PlayerInfo[playerid][pHelper] != 1) // Prilagodi si varijablu za Helpera
    {
        SetPlayerPos(playerid, Poz[0], Poz[1]+1.5, Poz[2]+0.5);
        GameTextForPlayer(playerid, "Nisi helper", 5000, 5); // Salje mu poruku
}
}


Aham,krivo sry :)