Lock car for team?
#8

Quote:
Originally Posted by iggy1
Посмотреть сообщение
what id do:
pawn Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
    if(GetPlayerTeam(forplayerid) == TEAM_SPEC)
    {
        SetVehicleParamsForPlayer(vehicleid, forplayerid,0,1);
    }
    return 1;
}
This will lock all vehicles xD

However this one is better :P

pawn Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{


    if(vehicleid >= 1 && vehicleid <= 19){ // EXAMPLE (Between VIN 1 & VIN 19)
        if(gteam[forplayerid]==Team_NAME){
            SetVehicleParamsForPlayer(vehicleid,forplayerid,0,0);
        }else{
            SetVehicleParamsForPlayer(vehicleid,forplayerid,0,1);
        }
    }
}
Reply


Messages In This Thread
Lock car for team? - by Kitten - 02.08.2010, 06:15
Re: Lock car for team? - by Retardedwolf - 02.08.2010, 06:19
Re: Lock car for team? - by Kitten - 02.08.2010, 06:44
Re: Lock car for team? - by willsuckformoney - 02.08.2010, 06:49
Re: Lock car for team? - by Kitten - 02.08.2010, 06:50
Re: Lock car for team? - by iggy1 - 02.08.2010, 07:06
Re: Lock car for team? - by Retardedwolf - 02.08.2010, 07:17
Re: Lock car for team? - by Mike Garber - 02.08.2010, 08:34
Re: Lock car for team? - by iggy1 - 02.08.2010, 15:31

Forum Jump:


Users browsing this thread: 1 Guest(s)