Specific vehicle
#10

Are you talking about the vehicles model or ID? Your first post implies the vehicles ID but if you mean model, try this.

pawn Код:
/* Outside OnGameModeInit */
#define ADMIN_VEHICLE_MODEL            432

/* inside OnPlayerEnterVehicle */
// If the players level is not an admin level
if (PlayerInfo[playerid][Level] == 0)
{
    // If the vehiclid the player is entering is our admin vehicle model
    if (GetVehicleModel(vehicleid) == ADMIN_VEHICLE_MODEL)
    {
        // Do what you want with the player
    }
}
Reply


Messages In This Thread
Specific vehicle - by Black Wolf - 23.09.2012, 04:43
Re: Specific vehicle - by Psymetrix - 23.09.2012, 04:49
Re: Specific vehicle - by Black Wolf - 23.09.2012, 04:54
Re: Specific vehicle - by Danyal - 23.09.2012, 04:58
Re: Specific vehicle - by Psymetrix - 23.09.2012, 05:03
Re: Specific vehicle - by Black Wolf - 23.09.2012, 05:04
Re: Specific vehicle - by Danyal - 23.09.2012, 05:12
Re: Specific vehicle - by Black Wolf - 23.09.2012, 05:15
Re: Specific vehicle - by Danyal - 23.09.2012, 05:16
Re: Specific vehicle - by Psymetrix - 23.09.2012, 05:16

Forum Jump:


Users browsing this thread: 1 Guest(s)