21.01.2010, 13:17
How to link a car to a team,
So like a team vehicle, So only one team can enter it,
So like a team vehicle, So only one team can enter it,
public OnVehicleStreamIn(vehicleid, forplayerid)
{
if(vehicleid == XXXXX) {
if(GetPlayerTeam(forplayerid) == XXXXX) {
SetVehicleParamsForPlayer(XXXXX,forplayerid,1,1);
}
else
{
SetVehicleParamsForPlayer(XXXXX,forplayerid,1,0);
}
}
else if(vehicleid == XXXXX222)
{
if(GetPlayerTeam(forplayerid) == XXXXX222)
{
SetVehicleParamsForPlayer(XXXXX222,forplayerid,1,1);
}
else
{
SetVehicleParamsForPlayer(XXXXX222,forplayerid,1,0);
}
}