SetVehicleParamsForPlayer(99, j, 0, 0); SetVehicleParamsForPlayer(100, j, 0, 0); SetVehicleParamsForPlayer(101, j, 0, 0); SetVehicleParamsForPlayer(102, j, 0, 0); SetVehicleParamsForPlayer(103, j, 0, 0); SetVehicleParamsForPlayer(104, j, 0, 0); SetVehicleParamsForPlayer(105, j, 0, 0); SetVehicleParamsForPlayer(106, j, 0, 0); SetVehicleParamsForPlayer(107, j, 0, 0); SetVehicleParamsForPlayer(108, j, 0, 0); SetVehicleParamsForPlayer(109, j, 0, 0);
|
Originally Posted by James_Geist
Ok, I found this under "Car check"
Код:
SetVehicleParamsForPlayer(99, j, 0, 0); SetVehicleParamsForPlayer(100, j, 0, 0); SetVehicleParamsForPlayer(101, j, 0, 0); SetVehicleParamsForPlayer(102, j, 0, 0); SetVehicleParamsForPlayer(103, j, 0, 0); SetVehicleParamsForPlayer(104, j, 0, 0); SetVehicleParamsForPlayer(105, j, 0, 0); SetVehicleParamsForPlayer(106, j, 0, 0); SetVehicleParamsForPlayer(107, j, 0, 0); SetVehicleParamsForPlayer(108, j, 0, 0); SetVehicleParamsForPlayer(109, j, 0, 0); |
for(new c = 1; c < 254; c++)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if (PlayerInfo[i][pJob] == 5)
{
SetVehicleParamsForPlayer(c, i, 0, 0);
}
}
}
if (gLastDriver[c] == 301)
{
CarRespawn©;
}
if (gLastDriver[c] >= 300)
{
gLastDriver[c]++;
}
//foundowner = -1;
}
return 1;
}
public LockCar(carid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
SetVehicleParamsForPlayer(carid,i,0,1);
}
}
}
public UnLockCar(carid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(!IsAPlane(carid))
{
SetVehicleParamsForPlayer(carid,i,0,0);
}
}
}
}
|
Originally Posted by James_Geist
I also have some other misc code with SetVehicleParamsForPlayer.
Код:
for(new c = 1; c < 254; c++)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if (PlayerInfo[i][pJob] == 5)
{
SetVehicleParamsForPlayer(c, i, 0, 0);
}
}
}
if (gLastDriver[c] == 301)
{
CarRespawn©;
}
if (gLastDriver[c] >= 300)
{
gLastDriver[c]++;
}
//foundowner = -1;
}
return 1;
}
Код:
public LockCar(carid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
SetVehicleParamsForPlayer(carid,i,0,1);
}
}
}
public UnLockCar(carid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(!IsAPlane(carid))
{
SetVehicleParamsForPlayer(carid,i,0,0);
}
}
}
}
|
|
Originally Posted by James_Geist
So, if I remove this, will I still be able to lock cars?
|