[Pomoc]Definisanje vozila

Započeo Bilsen_Jahjagic, April 03, 2013, 23:45:23 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Bilsen_Jahjagic

Skritpa koju koristim:SERP
Problem:Dodao sam ovako vozila,nzm kako da definisem pod on playerstatechange kako da napravim da to moze samo tec voziti
tec[0] = AddStaticVehicle(507,-1057.8309,-929.5156,129.0433,88.4173,0,0);  //
tec[1] = AddStaticVehicle(507,-1058.7883,-935.1210,129.0439,88.4173,0,0); //
tec[2] = AddStaticVehicle(507,-1059.2659,-940.9157,129.0451,88.4173,0,0); //
tec[3] = AddStaticVehicle(507,-1059.2375,-947.3073,129.0452,88.4173,0,0);//
tec[4] = AddStaticVehicle(507,-1059.9550,-952.6195,129.0435,88.4173,0,0); //

Dio moda:/
Neke slike/video:/

napravis na kraj skripte proveru stock TEC(carid)
{
for(new i = 0; i < sizeof(tec); i++)
{
if(carid == tec[i]) return 1;
}
return 0;
}
i proveru if(TEC(newcar))
{
    if(PlayerInfo[playerid][pLider] == id org||PlayerInfo[playerid][pClan] == id org) { }
    else {
        RemovePlayerFromVehicle(playerid);}
}

Bilsen_Jahjagic