ID of last vehicle entered
#8

My guess would be you have the array PlayerInfo assigned to MAX_PLAYERS with enumerator of pKeys.
So it would go.
pawn Код:
OnPlayerExitVehicle //bla bla
Lastcar[playerid] = vehicleid //bla blah
CMD:lock(playerid, params[])
{
     if(lastcar[playerid] != PlayerInfo[playerid][pKeys]) return SendClientMessage(playerid, COLOR_WHITE, "You do not own that vehicle.");
     else
     {
             //lock
      }
      return 1;
}
Reply


Messages In This Thread
ID of last vehicle entered - by SnG.Scot_MisCuDI - 25.07.2012, 02:47
Re: ID of last vehicle entered - by Akira297 - 25.07.2012, 02:52
Re: ID of last vehicle entered - by SnG.Scot_MisCuDI - 25.07.2012, 02:54
Re: ID of last vehicle entered - by Akira297 - 25.07.2012, 02:56
Re: ID of last vehicle entered - by SnG.Scot_MisCuDI - 25.07.2012, 03:06
Re: ID of last vehicle entered - by DeathTone - 25.07.2012, 03:06
Re: ID of last vehicle entered - by SnG.Scot_MisCuDI - 25.07.2012, 03:22
Re: ID of last vehicle entered - by maramizo - 25.07.2012, 05:50

Forum Jump:


Users browsing this thread: 1 Guest(s)