Lock car for team?
#1

Solved
Reply
#2

pawn Код:
if(gTeam[playerid] != TEAM_SPEC)
{
    PutPlayerInVehicle(vehicleid)
    }
}
Reply
#3

are u dumb?

EDIT: FIXED
Reply
#4

win lol && there is a tutorial on it
Reply
#5

a friend did it for me
Reply
#6

what id do:
pawn Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
    if(GetPlayerTeam(forplayerid) == TEAM_SPEC)
    {
        SetVehicleParamsForPlayer(vehicleid, forplayerid,0,1);
    }
    return 1;
}
Reply
#7

No I ain't dumb.
Reply
#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
#9

Quote:
Originally Posted by Kitten
Посмотреть сообщение
well i got a city wide DM script i got but i want all cars to be locked for TEAM_SPEC
he/she wanted all cars locking lol
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)