06.12.2008, 08:43
First of all you post it in wrong section... Second can you post your OnPlayerEnterVehicle callback so we can see what is the problem...
And for second question you need to tell us which GM you are using... Because you need to define when is player civilian...
EDIT: I gues you use GF mode...
Do something like this under CarCheck
And for second question you need to tell us which GM you are using... Because you need to define when is player civilian...
EDIT: I gues you use GF mode...
Do something like this under CarCheck
pawn Код:
for(new c = 74; c < 254; c++) //just ad the IDs of car which civilian will not be able to acces
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if (PlayerInfo[i][gTeam] == 3)
{
SetVehicleParamsForPlayer(c, i, 0, 1);
}
else
{
SetVehicleParamsForPlayer(c, i, 0, 0);
}
}
}
}