Szerző Téma: Autóba beszállás...  (Megtekintve 458 alkalommal)

Nem elérhető Petrik

  • 318
    • Profil megtekintése
Autóba beszállás...
« Dátum: 2012. december 15. - 16:07:53 »
0 Show voters
Sziasztok!

Azt szeretném kérdezni, hogy hogyan tudom megcsinálni azt, hogy csak az tudjon beszálni egy LSPD kocsiba, aki rendõr skinbe van? Szóval skint kéne lekérni, de nem értem, azt hogyan lehet kocsival...

Autóba beszállás...
« Válasz #1 Dátum: 2012. december 15. - 18:14:07 »
+1 Show voters
#include <a_samp>
new copcar;
new copskin;
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
copcar = GetVehicleModel(vehicleid);
if(copcar == 596 || copcar == 597 || copcar == 598) //LSPD, SFPD, LVPD
{
copskin = GetPlayerSkin(playerid);
if(copskin == 280 || copskin == 281 || copskin == 282 || copskin == 283 || copskin == 284 || copskin == 285 || copskin == 286 || copskin == 287 || copskin == 288)
{
           SendClientMessage(playerid,0x33AA33AA, \"Jó vezetést!\");
}
else
{
    ClearAnimations(playerid);
           SendClientMessage(playerid,0xFF0606FF, \"Nem ülhetsz bele!\");
}
}
return 1;
}

 
Szerk.:  Javítva kocsi alapján.  :whistle:
« Utoljára szerkesztve: 2012. december 15. - 18:34:17 írta takehun »

Nem elérhető Petrik

  • 318
    • Profil megtekintése
Autóba beszállás...
« Válasz #2 Dátum: 2012. december 15. - 18:38:13 »
0 Show voters
Idézetet írta: takehun date=1355591647\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"30975\" data-ipsquote-contentclass=\"forums_Topic

#include <a_samp>
new copcar;
new copskin;
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
copcar = GetVehicleModel(vehicleid);
if(copcar == 596 || copcar == 597 || copcar == 598) //LSPD, SFPD, LVPD
{
copskin = GetPlayerSkin(playerid);
if(copskin == 280 || copskin == 281 || copskin == 282 || copskin == 283 || copskin == 284 || copskin == 285 || copskin == 286 || copskin == 287 || copskin == 288)
{
           SendClientMessage(playerid,0x33AA33AA, \"Jó vezetést!\");
}
else
{
    ClearAnimations(playerid);
           SendClientMessage(playerid,0xFF0606FF, \"Nem ülhetsz bele!\");
}
}
return 1;
}

 
Szerk.:  Javítva kocsi alapján.  :whistle:
 
Hogy is mondjam neked szépen... KIB*SZOTTUL KÖSZÖNÖM!  ;)

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal