23.08.2009, 11:36
#define V(%1, %2) \
if( GetVeicleModel( GetPlayerVehicleID( %1 ) ) == %2 )
If player Vehicle model id equal hunters or barracks or patriot model id.
Gamestar
if( GetVeicleModel( GetPlayerVehicleID( %1 ) ) == %2 )
pawn Код:
if( ( V( playerid,433 ) || V( playerid, 432 ) || V( playerid, 425 ) ) )
{
// Code
}
else
{
return SendClientMessage(playerid, COLOR_YELLOW, "You cannot start the convoy with this vehicle!");
}
return 1;
}
Gamestar