[pomoc] virtualworld

Započeo m@rio, Jul 11, 2011, 13:06:41 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: mod od 0
Detaljan opis problema: zelio bi namjestit da kad se vozilo spawna da mu namjesti VW na 1, ali ne mogu
Dio skripte:
public OnVehicleSpawn(vehicleid)
{
new vozilo = vehicleid;
if(Stunt(vozilo))
{
SetVehicleVirtualWorld(vozilo, 1);
}
return 1;
}

ongamemodeinit:
stuntcar[1] = AddStaticVehicleEx(411,12.29619598,1567.84924316,12.55000019,134.99987793,-1,6,15); //Infernus
stuntcar[2] = AddStaticVehicleEx(411,2.71408463,1551.90893555,12.55602360,134.99450684,3,6,15); //Infernus
stuntcar[3] = AddStaticVehicleEx(411,16.22920609,1563.77514648,12.55000019,134.99987793,-1,-1,15); //Infernus
stuntcar[4] = AddStaticVehicleEx(411,19.29091644,1558.59545898,12.55000019,134.99450684,42,1,15); //Infernus
stuntcar[5] = AddStaticVehicleEx(411,24.35033226,1555.58972168,12.55000019,134.99450684,11,1,15); //Infernus
stuntcar[6] = AddStaticVehicleEx(411,13.11739922,1540.43920898,12.55000019,134.99450684,17,1,15); //Infernus
stuntcar[7] = AddStaticVehicleEx(411,28.46865845,1551.58728027,12.55000019,134.99450684,6,1,15); //Infernus
stuntcar[8] = AddStaticVehicleEx(411,5.67184544,1559.93872070,12.55000019,134.99450684,126,-1,15); //Infernus
stuntcar[9] = AddStaticVehicleEx(411,20.70880318,1544.02685547,12.55000019,134.99450684,-1,15,15); //Infernus
stuntcar[10] = AddStaticVehicleEx(411,11.66999054,1550.48632812,12.55000019,134.99450684,-1,6,15); //Infernus

na vrhu skrpte:
new stuntcar[11];
stock:
stock Stunt(vozilo)
{
if(vozilo == stuntcar[1] || vozilo == stuntcar[2] || vozilo == stuntcar[3] || vozilo == stuntcar[4] || vozilo == stuntcar[5] || vozilo == stuntcar[6] || vozilo == stuntcar[7] || vozilo == stuntcar[8] || vozilo == stuntcar[9] || vozilo == stuntcar[10])
{
return 1;
}
return 0;
}

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

stock ovako probaj
stock Stunt(vozilo) 

if(vozilo == stuntcar[1] || vozilo == stuntcar[2] || vozilo == stuntcar[3] || vozilo == stuntcar[4] || vozilo == stuntcar[5] || vozilo == stuntcar[6] || vozilo == stuntcar[7] || vozilo == stuntcar[8] || vozilo == stuntcar[9] || vozilo == stuntcar[10]) 

return 1; 


public OnVehicleSpawn(vehicleid) 

new vozilo = GetPlayerVehicleID; 
if(Stunt(vozilo)) 

SetVehicleVirtualWorld(vozilo, 1); 

   return 1; 
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √