Need Help with VehicleIDs
#2

Either make a param for the players username and only the username owns it, or give each vehicle a SPECIAL ID and that SPECIAL ID is the key, so to check what vehicle it is, you can easily do:
pawn Код:
for(new i = 0; i < MAX_VEHICLES; i++)
{
  if(CheckIfOwnedByPlayer(playerid, vehicleid))
  // ....
this was just a little example and then you'll find out who owns that vehicle ID and can easily lock and unlock vehicles, also as a suggestion, if you do that, they may flood your cmds, so you should always GetTickCount and check if he uses the command in a distance from for example 3 seconds.
Reply


Messages In This Thread
Need Help with VehicleIDs - by modmk - 07.02.2009, 15:33
Re: Need Help with VehicleIDs - by Extremo - 07.02.2009, 15:55
Re: Need Help with VehicleIDs - by modmk - 07.02.2009, 16:00
Re: Need Help with VehicleIDs - by modmk - 07.02.2009, 17:54
Re: Need Help with VehicleIDs - by ICECOLDKILLAK8 - 07.02.2009, 18:11
Re: Need Help with VehicleIDs - by modmk - 07.02.2009, 19:51
Re: Need Help with VehicleIDs - by c-middia - 07.02.2009, 20:29
Re: Need Help with VehicleIDs - by modmk - 08.02.2009, 15:17
Re: Need Help with VehicleIDs - by c-middia - 11.02.2009, 19:49
Re: Need Help with VehicleIDs - by modmk - 14.02.2009, 15:35

Forum Jump:


Users browsing this thread: 1 Guest(s)