how to ?
#3

Quote:

doesnt let the player in the vehicle BEFORE he enters it

you could just lock the cars using SetVehicleParamsForPlayer
and then unlock them when the player spawns as that team

(the code below is just an example to demonstrate what i mean)

pawn Код:
lockhitmancars(playerid){
  SetVehicleParamsForPlayer(Hitmancar[0],playerid,0,1);
  SetVehicleParamsForPlayer(Hitmancar[1],playerid,0,1);
  //etc
};

unlockhitmancars(playerid){
  SetVehicleParamsForPlayer(Hitmancar[0],playerid,0,0);
  SetVehicleParamsForPlayer(Hitmancar[1],playerid,0,0);
  //etc
};

//onplayerconnect
  lockhitmancars(playerid);

//onplayerspawn
  if(gTeam[playerid] == TEAM_HITMAN) unlockhitmancars(playerid);
Reply


Messages In This Thread
how to ? - by coole210 - 14.06.2009, 17:14
Re: how to ? - by Grim_ - 14.06.2009, 17:18
Re: how to ? - by jonesy - 14.06.2009, 17:24
Re: how to ? - by coole210 - 14.06.2009, 18:16
Re: how to ? - by coole210 - 16.06.2009, 02:10

Forum Jump:


Users browsing this thread: 1 Guest(s)